Bump actions/upload-artifact from 4 to 7 #28
This file contains hidden or 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
| # 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 |