ci: create rust.yml
This commit is contained in:
parent
9876f74a04
commit
f88a3a1112
25
.github/workflows/rust.yml
vendored
Normal file
25
.github/workflows/rust.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: Rust
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Rust project - nightly
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: rustup update nightly && rustup default nightly
|
||||
- name: Build
|
||||
run: cargo build --all --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --all --verbose
|
||||
Loading…
x
Reference in New Issue
Block a user