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
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
build: [x86, arm]
|
build: [x86]
|
||||||
include:
|
include:
|
||||||
- build: x86
|
- build: x86
|
||||||
rust: stable
|
rust: stable
|
||||||
@ -33,12 +33,15 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
target: ${{ matrix.target }}
|
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
|
- name: Build and Upload Binary
|
||||||
run: |
|
run: |
|
||||||
cargo build --release --target x86_64-unknown-linux-musl
|
cargo build --release --target ${{ matrix.target }}
|
||||||
cargo build --release --target aarch64-unknown-linux-musl
|
|
||||||
# 生成的二进制文件位于 "target/{target}/release/" 目录下
|
# 生成的二进制文件位于 "target/{target}/release/" 目录下
|
||||||
|
|
||||||
- name: Upload archive
|
- name: Upload archive
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user