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
|
||||
rust: stable
|
||||
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
|
||||
- build: arm
|
||||
rust: stable
|
||||
target: aarch64-unknown-linux-musl
|
||||
bin-name: aarch64-unknown-linux-musl-auth
|
||||
archive-name: aarch64-unknown-linux-musl-rust-auth
|
||||
# - build: arm
|
||||
# rust: stable
|
||||
# target: aarch64-unknown-linux-musl
|
||||
# bin-name: auth
|
||||
# archive-name: aarch64-unknown-linux-musl-rust-auth
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@ -33,16 +33,15 @@ jobs:
|
||||
profile: minimal
|
||||
override: true
|
||||
target: ${{ matrix.target }}
|
||||
- name: install musl
|
||||
- name: Install musl-gcc
|
||||
uses: awalsh128/cache-apt-pkgs-action@v1
|
||||
with:
|
||||
packages: musl-tools # provides musl-gcc
|
||||
version: 1.0
|
||||
|
||||
- name: Build and Upload Binary
|
||||
- name: Build Binary
|
||||
run: |
|
||||
cargo build --release --target ${{ matrix.target }}
|
||||
# 生成的二进制文件位于 "target/{target}/release/" 目录下
|
||||
|
||||
- name: Upload archive
|
||||
uses: actions/upload-artifact@v1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user