Skip to content

Commit

Permalink
Scripts: Fixed build script for HAL tests and Rust CI workflow
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Demski (Glamhoth) <Glamhoth@users.noreply.github.com>
  • Loading branch information
SteelPh0enix and Glamhoth committed Aug 21, 2023
1 parent 77ab13c commit d392180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
build-hal-tests:
name: Build HAL integration tests
runs-on: ubuntu-latest
needs: [rustfmt, clippy, build]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
Expand Down
17 changes: 5 additions & 12 deletions scripts/build_hal_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@

set -euo pipefail

if [ $# -eq 0 ]
then
for d in testbins/test-hal-*/; do
pushd $d > /dev/null
cargo build
popd > /dev/null
done
else
pushd examples/$1/ > /dev/null
cargo build
popd > /dev/null
fi
for d in testbins/test-hal-*/; do
pushd $d > /dev/null
cargo build
popd > /dev/null
done

0 comments on commit d392180

Please sign in to comment.