-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up Github Actions CI for swift-matter-examples, fix outstanding b…
…uild failures - build.yml now builds the 3 examples projects in this repo using the `espressif/esp-matter:latest` container and a fixed swift toolchain version from swift.org - the examples are just built, not runtime testing, for now - a couple of tiny fixes to resolve build failures (strdup, missing IOU on RootNode)
- Loading branch information
1 parent
c680e49
commit 0cf0959
Showing
5 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build Matter Examples | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
schedule: | ||
# Build on Mondays at 9am PST every week | ||
- cron: '0 17 * * 1' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: espressif/esp-matter:latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
example: [empty-template, led-blink, smart-light] | ||
swift: [swift-DEVELOPMENT-SNAPSHOT-2024-12-13-a] | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Swift ${{ matrix.swift }} & CMake | ||
run: | | ||
set -vex | ||
wget -q https://download.swift.org/development/ubuntu2404/${{ matrix.swift }}/${{ matrix.swift }}-ubuntu24.04.tar.gz | ||
tar xzf ${{ matrix.swift }}-ubuntu24.04.tar.gz | ||
export PATH="$PATH:`pwd`/${{ matrix.swift }}-ubuntu24.04/usr/bin/" | ||
swiftc --version | ||
wget https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-linux-x86_64.tar.gz | ||
tar xzf cmake-3.30.2-linux-x86_64.tar.gz | ||
export PATH="`pwd`/cmake-3.30.2-linux-x86_64/bin:$PATH" | ||
cmake --version | ||
echo "PATH=$PATH" >> $GITHUB_ENV | ||
- name: Build with idf.py | ||
run: | | ||
pwd | ||
cd /opt/espressif/esp-idf | ||
. ./export.sh | ||
cd - | ||
cd /opt/espressif/esp-matter | ||
. ./export.sh | ||
cd - | ||
cd ${{ matrix.example }}/ | ||
idf.py set-target esp32c6 && | ||
idf.py build |
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
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
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
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