Skip to content

Commit 279deb2

Browse files
committed
Take advantage of workspace in CI BSP build script
1 parent f83b721 commit 279deb2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/build-bsp.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ jobs:
4141

4242
- name: Build ${{ matrix.bsp.name }}
4343
run: |
44-
build_invocation=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp.name }}' -c '.boards | .[$board] | .build')
4544
set -ex
46-
pushd boards/${{ matrix.bsp.name }}
47-
$(${build_invocation})
48-
popd
45+
build_invocation=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp.name }}' -c '.boards | .[$board] | .build')
46+
$("${build_invocation} -p ${{ matrix.bsp.name }}")
4947
mkdir -p output
5048
touch "output/build"
5149
@@ -55,8 +53,7 @@ jobs:
5553
set -ex
5654
build_invocation=$(cat ./crates.json | jq -Mr --arg board '${{ matrix.bsp.name }}' -c '.boards | .[$board] | .build')
5755
clippy_invocation=$(echo ${build_invocation} | sed 's/cargo build/cargo clippy/g')
58-
cd boards/${{ matrix.bsp.name }}
59-
$(${clippy_invocation})
56+
$("${clippy_invocation} -p ${{ matrix.bsp.name }}")
6057
6158
- name: Done
6259
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)