@@ -10,10 +10,7 @@ name: Build aarch64
1010jobs :
1111 build :
1212 name : Build
13- runs-on : [self-hosted, macOS, arm64]
14- defaults :
15- run :
16- shell : " /usr/bin/arch -arch arm64e /bin/bash -l {0}"
13+ runs-on : [self-hosted, macOS, ARM64]
1714 strategy :
1815 fail-fast : false
1916 matrix :
@@ -30,12 +27,13 @@ jobs:
3027 - arm-unknown-linux-gnueabihf
3128 - arm-unknown-linux-musleabihf
3229 steps :
33- - uses : actions/checkout@v2
30+ - uses : actions/checkout@v3
3431 - name : Install crosstool-ng
3532 run : |
3633 brew install coreutils crosstool-ng
3734 - name : Mount volumes
3835 run : |
36+ set -ex
3937 hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 16g -volname build build.dmg
4038 hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 1g -volname tools tools.dmg
4139 # Detach old if exists
4745 ls /Volumes
4846 - name : Build Toolchain
4947 run : |
48+ set -ex
5049 mkdir /Volumes/build/src
5150 cd ${{ matrix.target }}
5251 ct-ng build -j $(($(nproc) - 1))
5554 run : tail -n 500 ${{ matrix.target }}/build.log
5655 - name : Archive Toolchain
5756 run : |
57+ set -ex
5858 cd /Volumes/tools
5959 tar czf ${{ matrix.target }}-aarch64-darwin.tar.gz ${{ matrix.target }}
6060 cd -
@@ -66,10 +66,11 @@ jobs:
6666 hdiutil detach /Volumes/build -force | true
6767 hdiutil detach /Volumes/tools -force | true
6868 - name : Upload Toolchain
69- uses : actions/upload-artifact@v2
69+ uses : actions/upload-artifact@v3
7070 with :
7171 name : toolchains
7272 path : ${{ matrix.target }}-aarch64-darwin.tar.gz
73+ if-no-files-found : error
7374 - name : Upload Toolchain to GitHub Release
7475 uses : svenstaro/upload-release-action@v2
7576 if : " startsWith(github.ref, 'refs/tags/')"
0 commit comments