|
9 | 9 | build-nix: |
10 | 10 | strategy: |
11 | 11 | matrix: |
12 | | - os: [ ubuntu-20.04, ubuntu-22.04, macos-12 ] |
| 12 | + os: [ ubuntu-20.04, ubuntu-22.04, macos-12, macos-14 ] |
13 | 13 | runs-on: ${{ matrix.os }} |
14 | 14 |
|
15 | 15 | steps: |
16 | | - - uses: actions/checkout@v3 |
| 16 | + - uses: actions/checkout@v4 |
17 | 17 |
|
18 | | - - uses: actions/setup-python@v4 |
| 18 | + - uses: actions/setup-python@v5 |
19 | 19 | with: |
20 | 20 | python-version: "3.12" |
21 | 21 |
|
22 | 22 | - name: Gather build version (*nix) |
23 | 23 | run: | |
24 | 24 | mkdir dist |
25 | 25 | echo "::set-env name=VERSION::$(python scripts/get_version.py)" |
26 | | - echo "Building branch ${{env.GITHUB_REF}} - version ${{env.VERSION}}" |
| 26 | + echo "::set-env name=ARCH::$(python scripts/get_arch.py)" |
| 27 | + echo Building branch ${{ env.GITHUB_REF }} - version ${{ env.VERSION }} - on ${{ env.ARCH }} |
27 | 28 | env: |
28 | 29 | ACTIONS_ALLOW_UNSECURE_COMMANDS: true |
29 | 30 |
|
@@ -57,22 +58,34 @@ jobs: |
57 | 58 | dist/FastFlix --version |
58 | 59 | dist/FastFlix --test |
59 | 60 |
|
60 | | - - name: Upload standalone executable artifact |
61 | | - uses: actions/upload-artifact@v3 |
| 61 | + - name: Archive excutables |
| 62 | + run: | |
| 63 | + pushd dist |
| 64 | + 7z a -mm=Deflate -mfb=258 -mpass=15 FastFlix_${{ env.VERSION }}_${{ matrix.os }}_${{ env.ARCH }}.zip * |
| 65 | + popd |
| 66 | +
|
| 67 | + - name: Build Mac App |
| 68 | + if : ${{ startsWith(matrix.os, 'macos') }} |
| 69 | + run: | |
| 70 | + python scripts/build_mac_app.py ${{ matrix.os }} |
| 71 | + pushd dist |
| 72 | + 7z a -mm=Deflate -mfb=258 -mpass=15 FastFlix_${{ env.VERSION }}_appbundle_${{ matrix.os }}_${{ env.ARCH }}.zip FastFlix.app |
| 73 | + popd |
| 74 | +
|
| 75 | + - name: Upload executable artifacts |
| 76 | + uses: actions/upload-artifact@v4 |
62 | 77 | with: |
63 | | - name: FastFlix_${{ env.VERSION }}_${{ matrix.os }}_x86_64 |
64 | | - path: | |
65 | | - dist/FastFlix |
66 | | - dist/LICENSE |
| 78 | + name: FastFlix_${{ env.VERSION }}_OUTER_DO_NOT_UPLOAD_${{ matrix.os }}_${{ env.ARCH }} |
| 79 | + path: dist/*.zip |
67 | 80 |
|
68 | 81 |
|
69 | 82 | build-windows-2022: |
70 | 83 |
|
71 | 84 | runs-on: windows-2022 |
72 | 85 |
|
73 | 86 | steps: |
74 | | - - uses: actions/checkout@v3 |
75 | | - - uses: actions/setup-python@v4 |
| 87 | + - uses: actions/checkout@v4 |
| 88 | + - uses: actions/setup-python@v5 |
76 | 89 | with: |
77 | 90 | python-version: "3.12" |
78 | 91 |
|
@@ -145,7 +158,7 @@ jobs: |
145 | 158 | move docs\build-licenses.txt LICENSE |
146 | 159 |
|
147 | 160 | - name: Upload standalone executable artifact |
148 | | - uses: actions/upload-artifact@v3 |
| 161 | + uses: actions/upload-artifact@v4 |
149 | 162 | with: |
150 | 163 | name: FastFlix_${{ env.VERSION }}_win64 |
151 | 164 | path: | |
|
0 commit comments