Skip to content

Commit 2e3861f

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

2 files changed

Lines changed: 21 additions & 265 deletions

File tree

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

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

.github/workflows/build.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,41 @@ 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+
20+
steps:
21+
jobs:
22+
build:
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
os: [ubuntu-latest, macos-latest, windows-latest]
27+
runs-on: ${{ matrix.os }}
28+
2029
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v4
30+
# Checkout into a short path to avoid Windows MAX_PATH issues
31+
- uses: actions/checkout@v4
2332
with:
24-
path: OpenAstroFocuser
25-
persist-credentials: false
33+
path: OAF
2634

2735
- name: Set up Python
2836
uses: actions/setup-python@v5
2937
with:
3038
python-version: 3.12
3139

32-
- name: Setup Zephyr project
33-
uses: ./OpenAstroFocuser/.github/actions/setup-zephyr
40+
# Setup Zephyr
41+
- name: Setup Zephyr
42+
uses: zephyrproject-rtos/action-zephyr-setup@v1
3443
with:
35-
app-path: OpenAstroFocuser
44+
app-path: 'OAF'
3645
toolchains: arm-zephyr-eabi:xtensa-espressif_esp32s3_zephyr-elf
37-
ccache-cache-key: ${{ matrix.os }}
3846

3947
- name: Build firmware
40-
working-directory: OpenAstroFocuser
48+
working-directory: OAF
4149
shell: bash
4250
run: |
4351
if [ "${{ runner.os }}" = "Windows" ]; then
@@ -46,10 +54,10 @@ jobs:
4654
west twister -T app -v --inline-logs --integration $EXTRA_TWISTER_FLAGS
4755
4856
- name: Twister Tests
49-
working-directory: OpenAstroFocuser
57+
working-directory: OAF
5058
shell: bash
5159
run: |
5260
if [ "${{ runner.os }}" = "Windows" ]; then
5361
EXTRA_TWISTER_FLAGS="--short-build-path -O/tmp/twister-out"
5462
fi
55-
west twister -T tests -v --inline-logs --integration $EXTRA_TWISTER_FLAGS
63+
west twister -T tests -v --inline-logs --integration $EXTRA_TWISTER_FLAGS

0 commit comments

Comments
 (0)