Skip to content

Commit 6f490f2

Browse files
committed
Add Rust CI
1 parent 985f993 commit 6f490f2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Cargo Build & Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
build_and_test:
12+
name: Rust project - latest
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
toolchain:
17+
- stable
18+
- beta
19+
- nightly
20+
steps:
21+
- uses: actions/checkout@v4
22+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
23+
- run: cargo build --verbose
24+
- run: cargo test --verbose

0 commit comments

Comments
 (0)