Skip to content

Commit 9b344ff

Browse files
committed
Update github actions
1 parent 6facf95 commit 9b344ff

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/Build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,23 @@ jobs:
2525
- armv7-unknown-linux-musleabihf
2626
- arm-unknown-linux-gnueabi
2727
- arm-unknown-linux-gnueabihf
28+
- arm-unknown-linux-musleabihf
2829
steps:
29-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
3031
- name: Install crosstool-ng
3132
run: |
3233
brew install coreutils crosstool-ng
3334
- name: Mount volumes
3435
run: |
36+
set -ex
3537
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 16g -volname build build.dmg
3638
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 1g -volname tools tools.dmg
3739
hdiutil attach build.dmg.sparseimage
3840
hdiutil attach tools.dmg.sparseimage
3941
ls /Volumes
4042
- name: Build Toolchain
4143
run: |
44+
set -ex
4245
mkdir /Volumes/build/src
4346
cd ${{ matrix.target }}
4447
ct-ng build -j $(($(nproc) - 1))
@@ -47,16 +50,18 @@ jobs:
4750
run: tail -n 500 ${{ matrix.target }}/build.log
4851
- name: Archive Toolchain
4952
run: |
53+
set -ex
5054
cd /Volumes/tools
5155
tar czf ${{ matrix.target }}-x86_64-darwin.tar.gz ${{ matrix.target }}
5256
cd -
5357
mv /Volumes/tools/${{ matrix.target }}-x86_64-darwin.tar.gz .
5458
sha256sum ${{ matrix.target }}-x86_64-darwin.tar.gz | tee ${{ matrix.target }}-x86_64-darwin.tar.gz.sha256
5559
- name: Upload Toolchain
56-
uses: actions/upload-artifact@v2
60+
uses: actions/upload-artifact@v3
5761
with:
5862
name: toolchains
5963
path: ${{ matrix.target }}-x86_64-darwin.tar.gz
64+
if-no-files-found: error
6065
- name: Upload Toolchain to GitHub Release
6166
uses: svenstaro/upload-release-action@v2
6267
if: "startsWith(github.ref, 'refs/tags/')"

.github/workflows/aarch64.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ name: Build aarch64
1010
jobs:
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
@@ -47,6 +45,7 @@ jobs:
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))
@@ -55,6 +54,7 @@ jobs:
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

Comments
 (0)