Update rust.yml
This commit is contained in:
parent
b39057c243
commit
2b3a41cb9b
17
.github/workflows/rust.yml
vendored
17
.github/workflows/rust.yml
vendored
@ -11,20 +11,25 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
strategy:
|
||||||
runs-on: ubuntu-latest
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-18.04, ubuntu-20.04]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Add target
|
||||||
run: cargo build --release --verbose
|
run: rustup target install x86_64-unknown-linux-musl
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
|
- name: Build
|
||||||
|
run: cargo build --release --verbose --target=x86_64-unknown-linux-musl
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v2.2.4
|
uses: actions/upload-artifact@v2.2.4
|
||||||
with:
|
with:
|
||||||
# Artifact name
|
# Artifact name
|
||||||
name: amdfand
|
name: amdfand-${{ matrix.os }}
|
||||||
# A file, directory or wildcard pattern that describes what to upload
|
# A file, directory or wildcard pattern that describes what to upload
|
||||||
path: ./target/release/amdfand
|
path: ./target/x86_64-unknown-linux-musl/release/amdfand
|
||||||
# The desired behavior if no files are found using the provided path.
|
# The desired behavior if no files are found using the provided path.
|
||||||
|
Loading…
Reference in New Issue
Block a user