1- on :
1+ on :
22 release :
33 types : [created]
44jobs :
55 build :
6- runs-on : macos-latest
6+ runs-on : macos-12
77 strategy :
8- matrix :
9- arch : ['x64']
10- # arm64 requires macos 11 sdk which is not supported by github actions right now. Handle mac arm build manually for now
8+ matrix :
9+ arch : ['x64', 'arm64']
1110 steps :
1211 - uses : actions/setup-node@master
1312 with :
14- node-version : " 16.x"
13+ node-version : ' 16.x'
1514 - name : Set up Python 3.8
1615 uses : actions/setup-python@v1
1716 with :
1817 python-version : 3.8
1918 - uses : actions/checkout@v2
2019 with :
2120 ref : ${{ github.ref }}
22-
23- - run : sudo xcode-select -switch /Applications/Xcode_12 .1.app
21+
22+ - run : sudo xcode-select -switch /Applications/Xcode_13 .1.app
2423
2524 - name : Build Qode binary
2625 run : node ./qode/build.js
2726 env :
28- TARGET_ARCH : ${{ matrix.arch }}
27+ TARGET_ARCH : ${{ matrix.arch }}
2928
3029 - name : Compress files
3130@@ -34,16 +33,16 @@ jobs:
3433 cwd : ./out/Release
3534 files : |
3635 ./qode
37- outPath : ${{github.event.release.tag_name}}-darwin-${{ matrix.arch }}.tar.gz
36+ outPath : ${{github.event.release.tag_name}}-darwin-${{ matrix.arch }}.tar.gz
3837
3938 - uses : actions/upload-artifact@v1
4039 with :
41- name : ${{github.event.release.tag_name}}-darwin-${{ matrix.arch }}.tar.gz
42- path : ${{github.event.release.tag_name}}-darwin-${{ matrix.arch }}.tar.gz
40+ name : ${{github.event.release.tag_name}}-darwin-${{ matrix.arch }}.tar.gz
41+ path : ${{github.event.release.tag_name}}-darwin-${{ matrix.arch }}.tar.gz
4342
4443 - name : Upload release binaries
45444645 env :
4746 GITHUB_TOKEN : ${{ github.token }}
4847 with :
49- asset_paths : ' ["${{github.event.release.tag_name}}-darwin-${{ matrix.arch }}.tar.gz"]'
48+ asset_paths : ' ["${{github.event.release.tag_name}}-darwin-${{ matrix.arch }}.tar.gz"]'
0 commit comments