Skip to content

Commit a6fc577

Browse files
committed
attempt to replace curl musl.cc for cross compiling with different arm runner
1 parent 270cc8f commit a6fc577

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,20 @@ jobs:
3131
package_version: ${{ env.PACKAGE_VERSION }}
3232

3333
build:
34-
name: build
35-
needs: [ create_release ]
36-
runs-on: ubuntu-latest
3734
strategy:
3835
matrix:
3936
target: [ x86_64-unknown-linux-musl, aarch64-unknown-linux-musl ]
4037
include:
4138
- target: x86_64-unknown-linux-musl
4239
strip: strip
40+
os: ubuntu-latest
4341
- target: aarch64-unknown-linux-musl
4442
strip: aarch64-linux-musl-strip
43+
os: ubuntu-24.04-arm
44+
45+
name: build
46+
needs: [ create_release ]
47+
runs-on: ${{ matrix.os }}
4548
steps:
4649
- name: Checkout repository
4750
uses: actions/checkout@v2
@@ -56,21 +59,12 @@ jobs:
5659
override: true
5760
target: ${{ matrix.target }}
5861

59-
- name: Install cross compile toolchains
60-
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
61-
run: |
62-
curl -O https://musl.cc/aarch64-linux-musl-cross.tgz
63-
tar xzf aarch64-linux-musl-cross.tgz
64-
sudo cp -R aarch64-linux-musl-cross/* /usr
65-
6662
- name: Build target
6763
uses: actions-rs/cargo@v1
6864
with:
69-
use-cross: true
7065
command: build
7166
args: --release --locked --target ${{ matrix.target }}
7267

73-
7468
- name: Build archive
7569
shell: bash
7670
run: |

0 commit comments

Comments
 (0)