forked from jmug/stoatchat
Change to nightly
This commit is contained in:
37
.github/workflows/rust.yaml
vendored
37
.github/workflows/rust.yaml
vendored
@@ -10,15 +10,32 @@ env:
|
|||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
check:
|
||||||
|
name: Rust project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Install latest nightly
|
||||||
run: cargo build --verbose
|
uses: actions-rs/toolchain@v1
|
||||||
- name: Run tests
|
with:
|
||||||
run: cargo test --verbose
|
toolchain: nightly
|
||||||
- name: Release Build
|
override: true
|
||||||
run: cargo build --release --verbose
|
components: rustfmt, clippy
|
||||||
|
|
||||||
|
# `cargo check` command here will use installed `nightly`
|
||||||
|
# as it is set as an "override" for current directory
|
||||||
|
|
||||||
|
- name: Run cargo build
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
|
||||||
|
- name: Run cargo test
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
|
||||||
|
- name: Run cargo build --release
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build --release
|
||||||
|
|||||||
Reference in New Issue
Block a user