Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen authored Oct 1, 2024
1 parent ab2816c commit 74156b3
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,24 @@ jobs:
- name: Export NuttX Repo SHA
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV

#### Begin Test
- name: Handle labels
run: |
pr=${{github.event.pull_request.number}}
echo pr=$pr
labels=$(gh pr view $pr --json labels --jq '.labels[] | .name')
echo labels=$labels
if [[ "$labels" == *"Arch: risc-v"* ]]; then
echo arch=risc-v
fi
#### End Test

- name: Run builds
uses: ./sources/nuttx/.github/actions/ci-container
env:
BLOBDIR: /tools/blobs
with:
run: |
#### Begin Test
pr=${{github.event.pull_request.number}}
echo pr=$pr
labels=$(gh pr view $pr --json labels --jq '.labels[] | .name')
echo labels=$labels
#### End Test
echo "::add-matcher::sources/nuttx/.github/gcc.json"
export ARTIFACTDIR=`pwd`/buildartifacts
git config --global --add safe.directory /github/workspace/sources/nuttx
Expand Down

0 comments on commit 74156b3

Please sign in to comment.