-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.18 KB
/
ci.yml
File metadata and controls
53 lines (44 loc) · 1.18 KB
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
53
# 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:
permissions:
contents: write
strategy:
matrix:
variant:
- esp32c6-standard
- esp32c6-large-partitions
- esp32c6-single-ota
- esp32s3-no-spram
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- name: Set up Toit build environment
uses: ./toit/actions/setup-build
with:
toit-dir: toit
esp32: true
- name: Build envelope
shell: bash
run: |
make init
make envelope VARIANT=${{ matrix.variant }}
- name: Upload envelope artifact
uses: actions/upload-artifact@v7
with:
name: envelope-${{ matrix.variant }}.envelope
path: dist/${{ matrix.variant }}.envelope
- name: Publish GitHub release asset
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v2
with:
files: |
dist/${{ matrix.variant }}.envelope