Skip to content

Commit

Permalink
github: workflows: Add upstream build workflow
Browse files Browse the repository at this point in the history
Add a workflow to verify that it's possible to fetch the Silabs HAL tree
and to build a Bluetooth sample agains a Silabs board using the latest
upstream main tree. Run the workflow at 5:15 UTC every day.

Signed-off-by: Johan Hedberg <[email protected]>
  • Loading branch information
jhedberg committed Aug 7, 2024
1 parent d4bc4fa commit a32c39c
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/upstream-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Silabs upstream daily build

on:
pull_request:
types:
- edited
- opened
- reopened
- synchronize
#schedule:

Check warning on line 10 in .github/workflows/upstream-build.yml

View workflow job for this annotation

GitHub Actions / build

YAMLLint (comments)

.github/workflows/upstream-build.yml:10 missing starting space in comment
#- cron: "15 5 * * *"

Check warning on line 11 in .github/workflows/upstream-build.yml

View workflow job for this annotation

GitHub Actions / build

YAMLLint (comments)

.github/workflows/upstream-build.yml:11 missing starting space in comment

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-14, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout

Check warning on line 21 in .github/workflows/upstream-build.yml

View workflow job for this annotation

GitHub Actions / build

YAMLLint (indentation)

.github/workflows/upstream-build.yml:21 wrong indentation: expected 4 but found 6
uses: actions/checkout@v4
with:
path: zephyr-silabs

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install Silabs-specific python dependencies
run: |
pip3 install crc
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: zephyr-silabs
toolchains: arm-zephyr-eabi

- name: Update manifest to point at upstream main branch
working-directory: zephyr-silabs
shell: bash
run: |
Z_REV=`grep -A 2 'name: zephyr$' west.yml|grep revision:|sed 's/^.*revision: //'`
sed -i .orig s/$Z_REV/main/ west.yml
west update
west blobs fetch hal_silabs
- name: Build Bluetooth sample for xG27
working-directory: zephyr-silabs
shell: bash
run: |
west build -b xg27_dk2602a/efr32bg27c140f768im40 ../zephyr/samples/bluetooth/peripheral_hr

0 comments on commit a32c39c

Please sign in to comment.