Repository navigation
57 lines (53 loc) · 2.03 KB
/
Copy pathtvos.yml
File metadata and controls
57 lines (53 loc) · 2.03 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
name: tvOS source build
on:
workflow_dispatch:
push:
branches: [feature/tvos]
permissions:
contents: read
concurrency:
group: tvos-${{ github.ref }}
cancel-in-progress: true
jobs:
simulator:
name: Qt mpv tvOS ${{ matrix.sdk }} build and smoke
runs-on: macos-15
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
sdk: [appletvsimulator, appletvos]
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803
with:
submodules: recursive
persist-credentials: false
- name: Install native build tools
run: brew install cmake ninja meson pkg-config bash python imagemagick gpatch
- name: Install pinned macOS Qt host tools
run: |
python3 -m venv "$RUNNER_TEMP/aqt"
"$RUNNER_TEMP/aqt/bin/pip" install aqtinstall
version="$(python3 -c 'import json;print(json.load(open("tools/manifests/toolchain.json"))["qt"]["version"])')"
"$RUNNER_TEMP/aqt/bin/aqt" install-qt mac desktop "$version" clang_64 \
-O "$RUNNER_TEMP/Qt" -m qtshadertools qtwebsockets qtimageformats qttasktree
echo "QT_HOST_PATH=$RUNNER_TEMP/Qt/$version/macos" >> "$GITHUB_ENV"
- name: Build Qt and media libraries for Apple TV simulator
env:
APPLE_SDK: ${{ matrix.sdk }}
APPLE_ARCH: arm64
JOBS: 3
BUILD_JOBS: 3
run: bash tools/build-tvos.sh
- name: Launch isolated Apple TV simulator smoke
if: matrix.sdk == 'appletvsimulator'
run: bash tools/apple/smoke-tvos.sh build/tvos/appletvsimulator-arm64/install/Spool.app
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
if: always()
with:
name: internal-tvos-${{ matrix.sdk }}-arm64
path: |
build/tvos/${{ matrix.sdk }}-arm64/install/Spool.app
build/tvos/${{ matrix.sdk }}-arm64/install/smoke/spool-tvos-playback-smoke.app
build/tvos/smoke/*.png
build/tvos/smoke/result.json