1616 runs-on : ${{ matrix.os }}
1717 strategy :
1818 matrix :
19- os : [windows-2016, macos-latest, ubuntu-16.04]
19+ name : [
20+ linux-x86_64,
21+ macos-x86_64,
22+ macos-arm64,
23+ windows-x86_64
24+ ]
25+ include :
26+ - name : linux-x86_64
27+ os : ubuntu-16.04
28+ arch : x86_64
29+ - name : macos-x86_64
30+ os : macos-10.15
31+ arch : x86_64
32+ - name : macos-arm64
33+ os : macos-11
34+ arch : arm64
35+ - name : windows-x86_64
36+ os : windows-2016
37+ arch : x86_64
2038 fail-fast : false
2139 steps :
2240 - uses : actions/checkout@v2
@@ -25,21 +43,21 @@ jobs:
2543 shell : powershell
2644 run : |
2745 ./build_windows.ps1
28- echo "UPLOAD_FILE=cutter-deps-qt-win.tar.gz" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
46+ echo "UPLOAD_FILE=cutter-deps-qt-win-${{ matrix.arch }} .tar.gz" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
2947 echo "UPLOAD_ASSET_TYPE=application/gzip" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
3048 - name : build macos
3149 if : contains(matrix.os, 'macos')
3250 run : |
3351 xcode-select --print-path
34- make
35- echo UPLOAD_FILE=cutter-deps-qt-macos.tar.gz >> $GITHUB_ENV
52+ make ARCH=${{ matrix.arch }}
53+ echo UPLOAD_FILE=cutter-deps-qt-macos-${{ matrix.arch }} .tar.gz >> $GITHUB_ENV
3654 echo UPLOAD_ASSET_TYPE=application/gzip >> $GITHUB_ENV
3755 - name : build linux
3856 if : contains(matrix.os, 'ubuntu')
3957 run : |
4058 sudo apt-get install libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libgtk-3-dev libgl1-mesa-dev libglu1-mesa-dev libxcb-*-dev
41- make
42- echo UPLOAD_FILE=cutter-deps-qt-linux.tar.gz >> $GITHUB_ENV
59+ make ARCH=${{ matrix.arch }}
60+ echo UPLOAD_FILE=cutter-deps-qt-linux-${{ matrix.arch }} .tar.gz >> $GITHUB_ENV
4361 echo UPLOAD_ASSET_TYPE=application/gzip >> $GITHUB_ENV
4462 - uses : actions/upload-artifact@v2
4563 if : startsWith(github.event.ref, 'refs/tags') == false
6280 upload_url : ${{ steps.get_release.outputs.upload_url }}
6381 asset_path : ${{ env.UPLOAD_FILE }}
6482 asset_name : ${{ env.UPLOAD_FILE }}
65- asset_content_type : ${{ env.UPLOAD_ASSET_TYPE }}
83+ asset_content_type : ${{ env.UPLOAD_ASSET_TYPE }}
0 commit comments