fix binary path in CI
This commit is contained in:
parent
41ae03ea5a
commit
600a29a77d
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -14,13 +14,13 @@ jobs:
|
|||||||
- build: x86
|
- build: x86
|
||||||
rust: stable
|
rust: stable
|
||||||
target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
bin-name: x86_64-unknown-linux-musl-auth
|
bin-name: auth
|
||||||
archive-name: x86_64-unknown-linux-musl-rust-auth
|
archive-name: x86_64-unknown-linux-musl-rust-auth
|
||||||
- build: arm
|
# - build: arm
|
||||||
rust: stable
|
# rust: stable
|
||||||
target: aarch64-unknown-linux-musl
|
# target: aarch64-unknown-linux-musl
|
||||||
bin-name: aarch64-unknown-linux-musl-auth
|
# bin-name: auth
|
||||||
archive-name: aarch64-unknown-linux-musl-rust-auth
|
# archive-name: aarch64-unknown-linux-musl-rust-auth
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -33,16 +33,15 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
- name: install musl
|
- name: Install musl-gcc
|
||||||
uses: awalsh128/cache-apt-pkgs-action@v1
|
uses: awalsh128/cache-apt-pkgs-action@v1
|
||||||
with:
|
with:
|
||||||
packages: musl-tools # provides musl-gcc
|
packages: musl-tools # provides musl-gcc
|
||||||
version: 1.0
|
version: 1.0
|
||||||
|
|
||||||
- name: Build and Upload Binary
|
- name: Build Binary
|
||||||
run: |
|
run: |
|
||||||
cargo build --release --target ${{ matrix.target }}
|
cargo build --release --target ${{ matrix.target }}
|
||||||
# 生成的二进制文件位于 "target/{target}/release/" 目录下
|
|
||||||
|
|
||||||
- name: Upload archive
|
- name: Upload archive
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user