Skip to content

Commit 2edf43c

Browse files
Add continuous integration
1 parent fb2f105 commit 2edf43c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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@v3
19+
- name: Install rustup
20+
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
21+
- name: Set default toolchain
22+
run: $HOME/.cargo/bin/rustup default stable
23+
- name: Set profile
24+
run: $HOME/.cargo/bin/rustup set profile minimal
25+
- name: Fmt
26+
run: cargo fmt -- --check --verbose
27+
- name: Build
28+
run: cargo build --verbose --all-features
29+
- name: Test
30+
run: cargo test --verbose --all-features
31+
- run: cargo check --verbose --no-default-features --features=blocking
32+
- run: cargo check --verbose --no-default-features --features=async
33+
- run: cargo check --verbose --no-default-features --features=async-https

0 commit comments

Comments
 (0)