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 cdd431a
Show file tree
Hide file tree
Showing 15 changed files with 638 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
10 changes: 9 additions & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ 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
- name: Check Clippy on threadx-sys
env:
RUSTFLAGS: "-Dwarnings"
run: |
cd threadx-sys
cargo clippy --all-features
29 changes: 21 additions & 8 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,24 @@ 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
with:
submodules: 'true'
- 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 cdd431a

Please sign in to comment.