Skip to content

Commit a6ee854

Browse files
authored
Merge pull request #1 from eugener/eugener-patch-1
Add CI workflow for Rust projects
2 parents 660fdef + 3498c82 commit a6ee854

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Install Rust Toolchain
20+
uses: actions-rs/toolchain@v1 # Or actions-rust-lang/setup-rust-toolchain@v1
21+
with:
22+
toolchain: stable # Use 'stable' to get the latest stable Rust
23+
profile: minimal
24+
override: true
25+
26+
- name: Build
27+
run: cargo build --verbose
28+
- name: Run tests
29+
run: cargo test --verbose

0 commit comments

Comments
 (0)