fix musl build
This commit is contained in:
parent
b709b733bc
commit
41ae03ea5a
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
build: [x86, arm]
|
||||
build: [x86]
|
||||
include:
|
||||
- build: x86
|
||||
rust: stable
|
||||
@ -33,12 +33,15 @@ jobs:
|
||||
profile: minimal
|
||||
override: true
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: install musl
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1
|
||||
with:
|
||||
packages: musl-tools # provides musl-gcc
|
||||
version: 1.0
|
||||
|
||||
- name: Build and Upload Binary
|
||||
run: |
|
||||
cargo build --release --target x86_64-unknown-linux-musl
|
||||
cargo build --release --target aarch64-unknown-linux-musl
|
||||
cargo build --release --target ${{ matrix.target }}
|
||||
# 生成的二进制文件位于 "target/{target}/release/" 目录下
|
||||
|
||||
- name: Upload archive
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user