-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Taken from https://github.com/thejpster/rp-hal-rp2350-public, with minor tweaks.
- Loading branch information
Showing
157 changed files
with
28,742 additions
and
56 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
on: [push, pull_request] | ||
name: Check rp235x-hal on Arm | ||
env: | ||
PACKAGE: rp235x-hal | ||
TARGET: thumbv8m.main-none-eabihf | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: ${{ env.TARGET }} | ||
- 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 rp235x-hal | ||
run: cd ${PACKAGE} && cargo hack build --optional-deps --each-feature --target=${TARGET} | ||
- name: Build rp235x-hal-macros | ||
run: cd ${PACKAGE}-macros && cargo hack build --optional-deps --each-feature | ||
test: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: ${{ env.TARGET }} | ||
- 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 rp235x-hal | ||
run: cd ${PACKAGE} && cargo hack test --optional-deps --each-feature --tests --features critical-section-impl | ||
- name: Test rp235x-hal docs | ||
run: cd ${PACKAGE} && cargo hack test --optional-deps --each-feature --doc --features critical-section-impl | ||
- name: Test rp235x-hal-macros | ||
run: cd ${PACKAGE}-macros && cargo hack test --optional-deps --tests --each-feature | ||
- name: Test rp235x-hal-macros docs | ||
run: cd ${PACKAGE}-macros && cargo hack test --optional-deps --doc --each-feature | ||
udeps: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2024-01-30 | ||
target: ${{ env.TARGET }} | ||
- 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: Run cargo-udeps on rp235x-hal | ||
run: cd ${PACKAGE} && cargo hack udeps --optional-deps --each-feature --target=${TARGET} | ||
- name: Run cargo-udeps on rp235x-hal-macros | ||
run: cd ${PACKAGE}-macros && cargo hack udeps --optional-deps --each-feature | ||
msrv: | ||
name: Verify build on MSRV | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.77 | ||
target: ${{ env.TARGET }} | ||
- 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: cd ${PACKAGE}-examples && cargo update -p regex --precise 1.9.3 | ||
- name: Build rp235x-hal (on MSRV) | ||
run: cd ${PACKAGE} && cargo hack build --optional-deps --each-feature --target=${TARGET} | ||
- name: Build rp235x-hal-macros (on MSRV) | ||
run: cd ${PACKAGE}-macros && cargo hack build --optional-deps --each-feature | ||
fmt: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
RUSTFLAGS: "-D warnings" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- name: Check format of rp235x-hal | ||
run: cd ${PACKAGE} && cargo fmt -- --check | ||
- name: Check format of rp235x-hal-macros | ||
run: cd ${PACKAGE}-macros && cargo fmt -- --check | ||
clippy: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
RUSTFLAGS: "-D warnings" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: ${{ env.TARGET }} | ||
components: clippy | ||
- name: Run cargo clippy | ||
run: cd ${PACKAGE} && cargo clippy --target=${TARGET} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
on: [push, pull_request] | ||
name: Check rp235x-hal-examples on Arm | ||
env: | ||
PACKAGE: rp235x-hal-examples | ||
TARGET: thumbv8m.main-none-eabihf | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: ${{ env.TARGET }} | ||
- name: Build | ||
run: cd ${PACKAGE} && cargo build --target=${TARGET} | ||
udeps: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2024-01-30 | ||
target: ${{ env.TARGET }} | ||
- 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: Run cargo-udeps | ||
run: cd ${PACKAGE} && cargo udeps --target=${TARGET} | ||
msrv: | ||
name: Verify build on MSRV | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.77 | ||
target: ${{ env.TARGET }} | ||
- name: Use older version of regex | ||
run: cd ${PACKAGE} && cargo update -p regex --precise 1.9.3 | ||
- name: Build on MSRV | ||
run: cd ${PACKAGE} && cargo build --target=${TARGET} | ||
fmt: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
RUSTFLAGS: "-D warnings" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- name: Check format | ||
run: cd ${PACKAGE} && cargo fmt -- --check | ||
clippy: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
RUSTFLAGS: "-D warnings" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: ${{ env.TARGET }} | ||
components: clippy | ||
- name: Run cargo clippy | ||
run: cd ${PACKAGE} && cargo clippy --target=${TARGET} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
on: [push, pull_request] | ||
name: Check rp235x-hal-examples on Arm | ||
env: | ||
PACKAGE: rp235x-hal-examples | ||
TARGET: riscv32imac-unknown-none-elf | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: ${{ env.TARGET }} | ||
- name: Build | ||
run: | | ||
cd ${PACKAGE} | ||
cat riscv_examples.txt | while read example; do | ||
echo "Building $example" | ||
cargo build --target=${TARGET} --bin $example | ||
done | ||
udeps: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2024-01-30 | ||
target: ${{ env.TARGET }} | ||
- 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: Run cargo-udeps | ||
run: | | ||
cd ${PACKAGE} | ||
cat riscv_examples.txt | while read example; do | ||
echo "Building $example" | ||
cargo udeps --target=${TARGET} --bin $example | ||
done | ||
msrv: | ||
name: Verify build on MSRV | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.77 | ||
target: ${{ env.TARGET }} | ||
- name: Use older version of regex | ||
run: cd ${PACKAGE} && cargo update -p regex --precise 1.9.3 | ||
- name: Build on MSRV | ||
run: | | ||
cd ${PACKAGE} | ||
cat riscv_examples.txt | while read example; do | ||
echo "Building $example" | ||
cargo build --target=${TARGET} --bin $example | ||
done | ||
fmt: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
RUSTFLAGS: "-D warnings" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- name: Check format | ||
run: cd ${PACKAGE} && cargo fmt -- --check | ||
clippy: | ||
runs-on: ubuntu-20.04 | ||
env: | ||
RUSTFLAGS: "-D warnings" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: ${{ env.TARGET }} | ||
components: clippy | ||
- name: Run cargo clippy | ||
run: | | ||
cd ${PACKAGE} | ||
cat riscv_examples.txt | while read example; do | ||
echo "Checking $example" | ||
cargo clippy --target=${TARGET} --bin $example | ||
done |
Oops, something went wrong.