Skip to content

Commit 43341ae

Browse files
Update build workflow to use official Zephyr setup action and restrict OS matrix to Windows
1 parent 07adbca commit 43341ae

File tree

2 files changed

+10
-263
lines changed

2 files changed

+10
-263
lines changed

.github/actions/setup-zephyr/action.yml

Lines changed: 0 additions & 252 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,29 @@ permissions:
1111

1212
jobs:
1313
build:
14-
name: Build app and tests
1514
strategy:
1615
fail-fast: false
1716
matrix:
18-
os: [ubuntu-22.04, macos-26, windows-2022]
17+
os: [ubuntu-latest, macos-latest, windows-latest]
1918
runs-on: ${{ matrix.os }}
19+
2020
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v4
21+
# Checkout into "app" so app-path can be stable everywhere
22+
- uses: actions/checkout@v4
2323
with:
2424
path: OpenAstroFocuser
25-
persist-credentials: false
2625

2726
- name: Set up Python
2827
uses: actions/setup-python@v5
2928
with:
3029
python-version: 3.12
3130

32-
- name: Setup Zephyr project
33-
uses: ./OpenAstroFocuser/.github/actions/setup-zephyr
31+
# Setup Zephyr
32+
- name: Setup Zephyr
33+
uses: zephyrproject-rtos/action-zephyr-setup
3434
with:
35-
app-path: OpenAstroFocuser
36-
toolchains: arm-zephyr-eabi:xtensa-espressif_esp32s3_zephyr-elf
37-
ccache-cache-key: ${{ matrix.os }}
35+
app-path: 'OpenAstroFocuser'
36+
toolchains: 'xtensa-espressif_esp32s3_zephyr-elf'
3837

3938
- name: Build firmware
4039
working-directory: OpenAstroFocuser
@@ -52,4 +51,4 @@ jobs:
5251
if [ "${{ runner.os }}" = "Windows" ]; then
5352
EXTRA_TWISTER_FLAGS="--short-build-path -O/tmp/twister-out"
5453
fi
55-
west twister -T tests -v --inline-logs --integration $EXTRA_TWISTER_FLAGS
54+
west twister -T tests -v --inline-logs --integration $EXTRA_TWISTER_FLAGS

0 commit comments

Comments
 (0)