Repository navigation
63 lines (57 loc) · 1.59 KB
/
Copy pathsha1-checked.yml
File metadata and controls
63 lines (57 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: sha1-checked
on:
pull_request:
paths:
- ".github/workflows/sha1-checked.yml"
- "sha1-checked/**"
- "Cargo.*"
push:
branches: master
defaults:
run:
working-directory: sha1-checked
env:
RUSTFLAGS: "-Dwarnings"
CARGO_INCREMENTAL: 0
# Cancels CI jobs when new commits are pushed to a PR branch
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
prepare:
- msrv
- stable
target:
- thumbv7em-none-eabi
- wasm32-unknown-unknown
steps:
- uses: actions/checkout@v7
- uses: RustCrypto/actions/cargo-cache@master
- uses: RustCrypto/actions/prepare-lock-toolchain@master
with:
prepare: ${{ matrix.prepare }}
package: ${{ github.workflow }}
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack build --target ${{ matrix.target }} --each-feature --exclude-features default
test:
runs-on: ubuntu-latest
strategy:
matrix:
prepare:
- stable
- msrv
- minimal-versions
steps:
- uses: actions/checkout@v7
- uses: RustCrypto/actions/cargo-cache@master
- uses: RustCrypto/actions/prepare-lock-toolchain@master
with:
prepare: ${{ matrix.prepare }}
package: ${{ github.workflow }}
- uses: RustCrypto/actions/cargo-hack-install@master
- run: cargo hack test --feature-powerset