Change to nightly

This commit is contained in:
Yannick Funk
2021-09-06 16:40:30 +02:00
committed by GitHub
parent 8813515786
commit fe085ef100

View File

@@ -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