-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (43 loc) · 1.35 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright (C) 2024 Toitware ApS.
#
# Use of this source code is governed by a BSD0-style license that can be
# found in the LICENSE file.
name: Build
on:
push
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Toit build environment
uses: ./toit/actions/setup-build
with:
toit-dir: toit
esp32: true
- shell: bash
run: echo $PATH
- name: Build - Linux and macOS
if: runner.os != 'Windows'
shell: bash
run: |
make init # Can be removed once the project is set up.
make
- name: Build - Windows
if: runner.os == 'Windows'
shell: pwsh
run: |
make init # Can be removed once the project is set up.
${{ github.workspace }}/toit/third_party/esp-idf/export.ps1
make host
cmake -E env `
"IDF_PATH=$PWD/toit/third_party/esp-idf" `
"IDF_TARGET=esp32" "IDF_CCACHE_ENABLE=1" `
"TOIT_EXTRA_COMPONENTS=$PWD/components" `
"TOIT_SDK_DIR=$PWD/build/host/sdk" `
python $PWD/toit/third_party/esp-idf/tools/idf.py -B "$PWD/build/esp32" -C build-root build