File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ name: Build aarch64
88jobs :
99 build :
1010 name : Build
11- runs-on : self-hosted
11+ runs-on : [self-hosted, macOS, arm64]
12+ defaults :
13+ run :
14+ shell : " /usr/bin/arch -arch arm64e /bin/bash -l {0}"
1215 strategy :
1316 matrix :
1417 target :
1821 - armv7-unknown-linux-gnueabihf
1922 steps :
2023 - uses : actions/checkout@v2
21- - name : Setup homebrew
22- run : |
23- echo "/opt/homebrew/bin" >> "${GITHUB_PATH}"
24- echo "/opt/homebrew/sbin" >> "${GITHUB_PATH}"
2524 - name : Install crosstool-ng
2625 run : |
2726 brew install coreutils
3130 hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 16g -volname build build.dmg
3231 hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 1g -volname tools tools.dmg
3332 # Detach old if exists
34- hdiutil detach /Volumes/build | true
35- hdiutil detach /Volumes/tools | true
33+ hdiutil detach /Volumes/build -force | true
34+ hdiutil detach /Volumes/tools -force | true
3635 # Attach new
3736 hdiutil attach build.dmg.sparseimage
3837 hdiutil attach tools.dmg.sparseimage
4140 run : |
4241 mkdir /Volumes/build/src
4342 cd ${{ matrix.target }}
44- arch -arm64 ct-ng build
43+ ct-ng build
4544 - name : Archive Toolchain
4645 run : |
4746 cd /Volumes/tools
5251 - name : Remove volumes
5352 if : ${{ always() }}
5453 run : |
55- hdiutil detach /Volumes/build | true
56- hdiutil detach /Volumes/tools | true
54+ hdiutil detach /Volumes/build -force | true
55+ hdiutil detach /Volumes/tools -force | true
5756 - name : Upload Toolchain
5857 uses : actions/upload-artifact@v2
5958 with :
You can’t perform that action at this time.
0 commit comments