better #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
build_app: | |
runs-on: ubuntu-22.04 | |
name: Run Application Build on changes (PR) | |
strategy: | |
matrix: | |
board: | |
- xiao_ble | |
- holyiot_21014 | |
steps: | |
- name: Update PATH for west | |
run: | | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: app | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Setup Zephyr project | |
uses: zephyrproject-rtos/action-zephyr-setup@v1 | |
with: | |
app-path: app | |
toolchains: arm-zephyr-eabi | |
# sdk-version: 0.16.8 | |
- name: Build Application | |
working-directory: app | |
shell: bash | |
run: | | |
west build -b ${{ matrix.board }} |