update workflow
This commit is contained in:
parent
ecbfce64ed
commit
422a852f50
3 changed files with 26 additions and 25 deletions
32
.github/workflows/rust.yml
vendored
32
.github/workflows/rust.yml
vendored
|
@ -11,19 +11,35 @@ env:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
target: x86_64-unknown-linux-gnu
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
run: cargo build --release
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
- name: Check formatting
|
||||
run: cargo fmt -- --check
|
||||
|
||||
- name: Clippy
|
||||
run: cargo clippy -- -D warnings
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ runner.os }}-binary
|
||||
path: |
|
||||
target/release/*.exe
|
||||
target/release/*
|
||||
!target/release/*.d
|
||||
!target/release/*.pdb
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue