Skip to content

Commit b2d3370

Browse files
committed
Add ci file
1 parent db4be32 commit b2d3370

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)