Skip to content

Commit

Permalink
ci: add hacky CI to ensure no_std works
Browse files Browse the repository at this point in the history
This patches `lalrpop` with a change that makes it `no_std` compatible.
  • Loading branch information
JayWhite2357 committed Sep 28, 2024
1 parent 0124ea8 commit df91594
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
run: cargo check -p proof-of-sql --no-default-features --features="perf"
- name: Run cargo check (proof-of-sql) (just "std" feature)
run: cargo check -p proof-of-sql --no-default-features --features="std"
- name: Run cargo check (proof-of-sql-parser) with no_std target. This requires a lalrpop patch.
run: |
rustup target add thumbv7em-none-eabi
printf '\n[patch.crates-io]\nlalrpop = { git = "https://github.com/lalrpop/lalrpop", rev = "173597c" }\nlalrpop-util = { git = "https://github.com/lalrpop/lalrpop", rev = "173597c" }\n' >> Cargo.toml
cargo check -p proof-of-sql-parser --target thumbv7em-none-eabi
test:
name: Test Suite
Expand Down

0 comments on commit df91594

Please sign in to comment.