Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bindgen to process ThreadX headers. #2

Merged
merged 2 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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