1414 changed : ${{ steps.filter.outputs.changed }}
1515 steps :
1616 - name : Checkout
17- uses : actions/checkout@v2
17+ uses : actions/checkout@v4
1818 - uses : dorny/paths-filter@v2
1919 id : filter
2020 with :
@@ -23,66 +23,35 @@ jobs:
2323 - '.github/workflows/tvos-tests.yml'
2424 - '**/*.swift'
2525
26- # ####################
27- # macOS 11 Versions #
28- # ####################
29-
30- build-tvos-macos-11-matrix :
31- name : tvOS Matrix - macOS 11
32- runs-on : macos-11.0
33- if : ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
34- needs : check-changes
35- strategy :
36- matrix :
37- xcode : [ "11.7", "12.4", "12.5.1", "13.0", "13.1", "13.2.1" ]
38-
39- env :
40- DEVELOPER_DIR : /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
41-
42- steps :
43- - name : Checkout
44- uses : actions/checkout@v2
45- - name : Build and Test
46- run : swift package generate-xcodeproj && xcrun xcodebuild test -scheme "Vexil-Package" -destination "platform=tvOS Simulator,name=Apple TV 4K"
47-
48- build-tvos-macos-11 :
49- runs-on : ubuntu-latest
50- name : tvOS Tests - macOS 11
51- if : ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
52- needs : build-tvos-macos-11-matrix
53- steps :
54- - name : Check build matrix status
55- if : ${{ needs.build-tvos-macos-11-matrix.result == 'failure' }}
56- run : exit 1
57-
58- # ####################
59- # macOS 12 Versions #
60- # ####################
61-
62- build-tvos-macos-12-matrix :
63- name : tvOS Matrix - macOS 12
64- runs-on : macos-12
26+ build-tvos-matrix :
27+ name : tvOS Matrix
6528 if : ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
6629 needs : check-changes
6730 strategy :
6831 matrix :
69- xcode : [ "13.1", "13.2.1", "13.3.1", "13.4.1", "14.0.1", "14.1", "14.2" ]
32+ xcode : [ "15.4", "16.0" ]
33+ os : [ macos-14 ]
34+ runs-on : ${{ matrix.os }}
7035
7136 env :
7237 DEVELOPER_DIR : /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
7338
7439 steps :
7540 - name : Checkout
76- uses : actions/checkout@v2
41+ uses : actions/checkout@v4
7742 - name : Build and Test
78- run : swift package generate-xcodeproj && xcrun xcodebuild test -scheme "Vexil-Package" -destination "platform=tvOS Simulator,name=Apple TV 4K (2nd generation)"
43+ run : |
44+ set -o pipefail && \
45+ NSUnbufferedIO=YES \
46+ xcrun xcodebuild test -workspace . -scheme Vexil -skipMacroValidation -destination "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)" \
47+ | xcbeautify --renderer github-actions
7948
80- build-tvos-macos-12 :
49+ build-tvos :
8150 runs-on : ubuntu-latest
82- name : tvOS Tests - macOS 12
51+ name : tvOS Tests
8352 if : ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
84- needs : build-tvos-macos-12- matrix
53+ needs : build-tvos-matrix
8554 steps :
8655 - name : Check build matrix status
87- if : ${{ needs.build-tvos-macos-12- matrix.result == 'failure' }}
56+ if : ${{ needs.build-tvos-matrix.result == 'failure' }}
8857 run : exit 1
0 commit comments