Add CI
Some checks failed
CI / build (push) Successful in 26s
CI / clippy (push) Failing after 25s
CI / no-std (push) Successful in 26s
CI / test (push) Failing after 32s

This commit is contained in:
2026-02-21 08:21:13 +00:00
parent 526d9f7458
commit 672d6d5aaa

42
.gitea/workflows/ci.yaml Normal file
View File

@@ -0,0 +1,42 @@
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
- run: cargo test --features webpki
- run: cargo test --features native-pki
- run: cargo test --features native-pki,rsa
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy -- -D warnings
no-std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: thumbv7em-none-eabi
- run: cargo build --target thumbv7em-none-eabi --no-default-features