Skip to content

Commit c884ab2

Browse files
committed
add cCI config
1 parent 661c9ef commit c884ab2

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: sponge-cursor
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/sponge-cursor.yml"
7+
- "sponge-cursor/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
12+
permissions:
13+
contents: read
14+
15+
defaults:
16+
run:
17+
working-directory: sponge-cursor
18+
19+
env:
20+
CARGO_INCREMENTAL: 0
21+
RUSTFLAGS: "-Dwarnings"
22+
23+
# Cancels CI jobs when new commits are pushed to a PR branch
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
26+
cancel-in-progress: true
27+
28+
jobs:
29+
build:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
matrix:
33+
rust:
34+
- 1.85.0 # MSRV
35+
- stable
36+
target:
37+
- thumbv7em-none-eabi
38+
- wasm32-unknown-unknown
39+
steps:
40+
- uses: actions/checkout@v6
41+
- uses: RustCrypto/actions/cargo-cache@master
42+
- uses: dtolnay/rust-toolchain@master
43+
with:
44+
toolchain: ${{ matrix.rust }}
45+
targets: ${{ matrix.target }}
46+
- run: cargo build --target ${{ matrix.target }}
47+
48+
minimal-versions:
49+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
50+
with:
51+
working-directory: ${{ github.workflow }}
52+
53+
test:
54+
runs-on: ubuntu-latest
55+
strategy:
56+
matrix:
57+
rust:
58+
- 1.85.0 # MSRV
59+
- stable
60+
steps:
61+
- uses: actions/checkout@v6
62+
- uses: RustCrypto/actions/cargo-cache@master
63+
- uses: dtolnay/rust-toolchain@master
64+
with:
65+
toolchain: ${{ matrix.rust }}
66+
- run: cargo test
67+
- run: cargo test --all-features
68+
69+
miri:
70+
runs-on: ubuntu-latest
71+
strategy:
72+
matrix:
73+
target:
74+
- x86_64-unknown-linux-gnu
75+
- s390x-unknown-linux-gnu
76+
steps:
77+
- uses: actions/checkout@v6
78+
- uses: RustCrypto/actions/cargo-cache@master
79+
- uses: dtolnay/rust-toolchain@master
80+
with:
81+
toolchain: stable
82+
components: miri
83+
- run: cargo miri test --all-features --target ${{ matrix.target }}

0 commit comments

Comments
 (0)