Rationalise all the license files and copyright notices. #1647
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Build and Test check | |
jobs: | |
rp2040-hal-builds: | |
name: Build rp2040-hal's features | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
target: thumbv6m-none-eabi | |
- name: Install cargo-hack | |
run: | | |
curl -sSL https://github.com/taiki-e/cargo-hack/releases/download/v0.6.17/cargo-hack-x86_64-unknown-linux-gnu.tar.gz | tar xvzf - -C ~/.cargo/bin | |
- name: Build rp2040-hal's workspace (without the examples) | |
run: cargo hack build --optional-deps --each-feature | |
- run: cargo clean | |
- name: Build rp2040-hal's workspace (with the examples) | |
run: cargo hack build --examples --optional-deps --each-feature | |
tests: | |
name: Execute host-runable tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
target: thumbv6m-none-eabi | |
- name: Install cargo-hack | |
run: | | |
curl -sSL https://github.com/taiki-e/cargo-hack/releases/download/v0.6.17/cargo-hack-x86_64-unknown-linux-gnu.tar.gz | tar xvzf - -C ~/.cargo/bin | |
- name: Test | |
run: cargo hack test -p rp2040-hal --target x86_64-unknown-linux-gnu --optional-deps --each-feature --tests --features critical-section-impl | |
- name: Test docs | |
run: cargo hack test -p rp2040-hal --target x86_64-unknown-linux-gnu --optional-deps --each-feature --doc --features critical-section-impl | |
- name: Test macros | |
run: cargo hack test -p rp2040-hal-macros --target x86_64-unknown-linux-gnu --optional-deps --tests --each-feature | |
- name: Test macro docs | |
run: cargo hack test -p rp2040-hal-macros --target x86_64-unknown-linux-gnu --optional-deps --doc --each-feature | |
- name: Clean | |
run: cargo clean | |
udeps: | |
name: Check rp2040-hal for unused dependencies | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly-2024-01-30 | |
target: thumbv6m-none-eabi | |
- name: Install cargo-hack | |
run: | | |
curl -sSL https://github.com/taiki-e/cargo-hack/releases/download/v0.6.17/cargo-hack-x86_64-unknown-linux-gnu.tar.gz | tar xvzf - -C ~/.cargo/bin | |
- name: Install cargo-udeps | |
run: | | |
curl -sSL https://github.com/est31/cargo-udeps/releases/download/v0.1.45/cargo-udeps-v0.1.45-x86_64-unknown-linux-gnu.tar.gz | tar xvzf - --strip-components=2 -C ~/.cargo/bin ./cargo-udeps-v0.1.45-x86_64-unknown-linux-gnu/cargo-udeps | |
- name: Check unused deps | |
run: cargo hack udeps --optional-deps --each-feature | |
msrv: | |
name: Verify build on MSRV | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.77 | |
target: thumbv6m-none-eabi | |
- name: Install cargo-hack | |
run: | | |
curl -sSL https://github.com/taiki-e/cargo-hack/releases/download/v0.6.17/cargo-hack-x86_64-unknown-linux-gnu.tar.gz | tar xvzf - -C ~/.cargo/bin | |
- name: Use older version of regex | |
run: cargo update -p regex --precise 1.9.3 | |
- name: Verify MSRV | |
run: cargo hack build --examples --optional-deps --each-feature |