generated from Oliver/discord-bot-template
oliver
86da8a032c
Some checks failed
Cargo Build & Test / Rust project - latest (nightly) (push) Failing after 29s
26 lines
541 B
YAML
26 lines
541 B
YAML
name: Cargo Build & Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: Rust project - latest
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
toolchain:
|
|
- nightly
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
- run: . "$HOME/.cargo/env"
|
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
|
- run: cargo build --verbose
|
|
- run: cargo test --verbose
|
|
|