Skip to content

Commit

Permalink
Use bindgen to process ThreadX headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpallant committed Nov 28, 2023
1 parent 69c25be commit 5a6e0ed
Show file tree
Hide file tree
Showing 15 changed files with 643 additions and 93 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,18 @@ jobs:
with:
name: demo-app
path: demo-app/target/thumbv7em-none-eabi/release/demo-app
job-build-threadx-sys:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Check threadx-sys
run: |
cd threadx-sys
cargo check
- name: Build threadx-sys
run: |
cd threadx-sys
cargo build
17 changes: 16 additions & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,30 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install tools
run: |
sudo apt-get update -y && sudo apt-get -y install gcc-arm-none-eabi
- name: Add rustup target
run: |
rustup target add thumbv7em-none-eabi
- name: Check Clippy
- name: Check Clippy on Demo App
env:
RUSTFLAGS: "-Dwarnings"
run: |
cd demo-app
cargo clippy --all-features
job-clippy-threadx-sys:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Check Clippy on threadx-sys
env:
RUSTFLAGS: "-Dwarnings"
run: |
cd threadx-sys
cargo clippy --all-features
27 changes: 19 additions & 8 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,22 @@ run-name: Check code formatting
on: [push]
jobs:
job-format-demo-app:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Check Formatting
run: |
cd demo-app
cargo fmt -- --check
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Check Formatting
run: |
cd demo-app
cargo fmt -- --check
job-format-threadx-sys:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Check Formatting
run: |
cd threadx-sys
cargo fmt -- --check
Loading

0 comments on commit 5a6e0ed

Please sign in to comment.