Skip to content

Bump actions/upload-artifact from 4 to 7 #28

Bump actions/upload-artifact from 4 to 7

Bump actions/upload-artifact from 4 to 7 #28

Workflow file for this run

# 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