Skip to content

Commit dcf7782

Browse files
committedJun 21, 2024··
Add CI
Signed-off-by: Filippo Costa <filippo@neysofu.me>
1 parent 1dfbd7f commit dcf7782

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1430
-31
lines changed
 

‎.github/workflows/ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
RUSTFLAGS: -D warnings
12+
# This is faster for CI: https://github.com/dtolnay/rust-toolchain/issues/26.
13+
CARGO_INCREMENTAL: "0"
14+
15+
jobs:
16+
check:
17+
name: check
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 60
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: rui314/setup-mold@v1
23+
- name: Install Rust
24+
run: rustup show && rustup install nightly && rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu # Nightly is needed for our configuration of cargo fmt
25+
- run: cargo check --all-targets --all-features
26+
- run: cargo test --all-targets --all-features

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
target/
2+
a.out
23

34
# Rust and Cargo
45
**/*.rs.bk

0 commit comments

Comments
 (0)
Please sign in to comment.