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
jobs:
build:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Release Build
run: cargo build --release --verbose
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
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