Skip to content

Commit d05b2b1

Browse files
committed
Add GitHub actions CI
1 parent cf22274 commit d05b2b1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
with:
20+
submodules: true
21+
- name: Build
22+
run: cargo build
23+
- name: Run tests
24+
run: cargo test
25+
- name: Build pure-rust
26+
run: cargo build --features=pure-rust
27+
- name: Run pure-rust tests
28+
run: cargo test --features=pure-rust
29+
- name: Build no-std
30+
run: cargo build --no-default-features
31+
- name: Run no-std tests
32+
run: cargo test --no-default-features
33+
- name: Build pure-rust no-std
34+
run: cargo build --no-default-features --features=pure-rust
35+
- name: Run pure-rust no-std tests
36+
run: cargo test --no-default-features --features=pure-rust

0 commit comments

Comments
 (0)