Skip to content

Commit f9e1d54

Browse files
Add github action and updated lock file
1 parent 1927374 commit f9e1d54

2 files changed

Lines changed: 72 additions & 2 deletions

File tree

.github/workflows/gmac.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: gmac
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/gmac.yml"
7+
- "gmac/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
12+
13+
defaults:
14+
run:
15+
working-directory: gmac
16+
17+
env:
18+
CARGO_INCREMENTAL: 0
19+
RUSTFLAGS: "-Dwarnings"
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
rust:
27+
- 1.85.0 # MSRV
28+
- stable
29+
target:
30+
- thumbv7em-none-eabi
31+
- wasm32-unknown-unknown
32+
steps:
33+
- uses: actions/checkout@v6
34+
- uses: RustCrypto/actions/cargo-cache@master
35+
- uses: dtolnay/rust-toolchain@master
36+
with:
37+
toolchain: ${{ matrix.rust }}
38+
targets: ${{ matrix.target }}
39+
- run: cargo build --no-default-features --target ${{ matrix.target }}
40+
41+
minimal-versions:
42+
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master
43+
with:
44+
working-directory: ${{ github.workflow }}
45+
46+
test:
47+
runs-on: ubuntu-latest
48+
strategy:
49+
matrix:
50+
rust:
51+
- 1.85.0 # MSRV
52+
- stable
53+
steps:
54+
- uses: actions/checkout@v6
55+
- uses: RustCrypto/actions/cargo-cache@master
56+
- uses: dtolnay/rust-toolchain@master
57+
with:
58+
toolchain: ${{ matrix.rust }}
59+
- uses: RustCrypto/actions/cargo-hack-install@master
60+
- run: cargo hack test --feature-powerset
61+
- run: cargo test --release --all-features
62+
docsrs:
63+
name: Check docs-rs build
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v3
67+
- uses: dtolnay/rust-toolchain@nightly
68+
- run: cargo doc --all-features --no-deps
69+
env:
70+
RUSTDOCFLAGS: "--cfg docsrs -D warnings"

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)