Skip to content

Bump actions/upload-artifact from 4 to 6 #23

Bump actions/upload-artifact from 4 to 6

Bump actions/upload-artifact from 4 to 6 #23

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:
name: ${{ matrix.variant }} / Toit ${{ matrix.toit.label }}
permissions:
contents: write
strategy:
matrix:
variant:
- esp32c6-standard
- esp32c6-large-partitions
- esp32c6-single-ota
- esp32s3-no-spram
toit:
- ref: v2.0.0-alpha.189
label: 189
- ref: v2.0.0-alpha.190
label: 190
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 TOIT_REF=${{ matrix.toit.ref }}
make envelope VARIANT=${{ matrix.variant }} TOIT_REF=${{ matrix.toit.ref }}
cp dist/${{ matrix.variant }}.envelope dist/${{ matrix.variant }}-toit-${{ matrix.toit.label }}.envelope
- name: Upload envelope artifact
uses: actions/upload-artifact@v6
with:
name: envelope-${{ matrix.variant }}-toit-${{ matrix.toit.label }}.envelope
path: dist/${{ matrix.variant }}-toit-${{ matrix.toit.label }}.envelope
- name: Publish GitHub release asset
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v2
with:
files: |
dist/${{ matrix.variant }}-toit-${{ matrix.toit.label }}.envelope