Skip to content

Commit 09af8cb

Browse files
committed
Update workflow for linker install
1 parent 10922b9 commit 09af8cb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- os: ubuntu-18.04
3939
artifact-name: stylua-linux-aarch64
4040
cargo-target: aarch64-unknown-linux-gnu
41+
linker: gcc-aarch64-linux-gnu
4142
- os: macos-latest
4243
artifact-name: stylua-macos-x86_64
4344
artifact-alias: stylua-macos
@@ -59,9 +60,11 @@ jobs:
5960
override: true
6061
profile: minimal
6162

62-
- name: Install aarch64 c toolchain
63-
if: ${{ matrix.cargo-target == 'aarch64-unknown-linux-gnu' }}
64-
run: apt-get install -y --force-yes --no-install-recommends gcc-aarch64-linux-gnu libc6-arm64-cross libc6-dev-arm64-cross
63+
- name: Install Linker packages
64+
if: ${{ matrix.linker != '' }}
65+
run: |
66+
sudo apt update
67+
sudo apt install ${{ matrix.linker }}
6568
6669
- name: Build Binary (All features)
6770
run: cargo build --verbose --locked --release --all-features --target ${{ matrix.cargo-target }}

0 commit comments

Comments
 (0)