Repository navigation
63 lines (59 loc) · 1.72 KB
/
Copy pathci.yml
File metadata and controls
63 lines (59 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: macOS build and tests
on:
push:
pull_request:
workflow_dispatch:
inputs:
run_performance:
description: Measure large document layout and input validation
type: boolean
default: false
permissions:
contents: read
concurrency:
group: macos-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
macos:
runs-on: macos-14
timeout-minutes: 20
env:
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer
MACDIFF_RUN_PERFORMANCE_TESTS: ${{ inputs.run_performance && '1' || '0' }}
steps:
- uses: actions/checkout@v5
- name: Toolchain
run: swift --version
- name: Test build metadata and release credential setup
run: |
python3 scripts/tests/test_build_metadata.py
python3 scripts/tests/test_release_credentials.py
- name: Test core and macOS application behavior
shell: bash
run: |
set -o pipefail
set +e
swift test --jobs 3 2>&1 | tee tests.log
test_result=${PIPESTATUS[0]}
set -e
{
echo '### Swift test result'
echo '```text'
tail -n 160 tests.log
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
exit "$test_result"
- name: Build and verify a universal development app bundle
shell: bash
run: |
set -o pipefail
MACDIFF_UNIVERSAL=1 ./scripts/build-app.sh debug 2>&1 | tee build.log
- name: Retain validation logs
if: always()
uses: actions/upload-artifact@v6
with:
name: macos-validation-macdiff
path: |
tests.log
build.log
retention-days: 7