Skip to content

Commit b6f8296

Browse files
committed
Add CI/CD
1 parent 36669ad commit b6f8296

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Build
19+
run: cargo build --verbose --features hw1
20+
- name: hw1-test-1
21+
run: cargo test --verbose --features hw1-test-1
22+
- name: hw1-test-2
23+
run: cargo test --verbose --features hw1-test-2
24+
- name: hw1-test-3
25+
run: cargo test --verbose --features hw1-test-3

0 commit comments

Comments
 (0)