From 58af3ecbfb571cabe8bfbcdd9ec1d469b579ae25 Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Sun, 15 Aug 2021 13:04:18 +0100 Subject: Add Github Actions and stm32ral dev-dep for doctests. --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ Cargo.toml | 4 ++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..eb90fb2 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: CI + +on: + - push + - pull_request + +jobs: + test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run tests + run: cargo test --all + + lint: + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: clippy + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index b53758a..67d305f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,5 +8,9 @@ repository = "https://github.com/adamgreig/ral-registers" license = "MIT OR Apache-2.0" keywords = ["mmio", "embedded"] categories = ["embedded", "no-std"] +autoexamples = false [dependencies] + +[dev-dependencies] +stm32ral = { version = "0.5.0", features = ["stm32f0x0"] } -- cgit v1.2.3