mirror of
https://github.com/dredozubov/polyrhythmix.git
synced 2024-11-23 12:27:42 +00:00
Update github workflow to use rustup and multiple rust versions
This commit is contained in:
parent
d8f1fa078f
commit
f30e16a63f
1 changed files with 14 additions and 12 deletions
24
.github/workflows/rust.yml
vendored
24
.github/workflows/rust.yml
vendored
|
@ -1,22 +1,24 @@
|
||||||
name: Rust
|
name: Cargo Build & Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_and_test:
|
||||||
|
name: Rust project - latest
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
toolchain:
|
||||||
|
- stable
|
||||||
|
- beta
|
||||||
|
- nightly
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||||
run: cargo build --verbose
|
- run: cargo build --verbose
|
||||||
- name: Run tests
|
- run: cargo test --verbose
|
||||||
run: cargo test --verbose
|
|
||||||
|
|
Loading…
Reference in a new issue