update cmake to 3.20 #43
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
name: Build and Package Main | |
on: | |
push: | |
branches: [main] | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
outputs: | |
zipfile-id: ${{ steps.zip_step.outputs.artifact-id }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Build Main Code | |
uses: espressif/esp-idf-ci-action@v1 | |
with: | |
esp_idf_version: release-v5.4 | |
path: '.' | |
command: 'idf.py build' | |
# TODO: set the target here to be the chip you are building for | |
# target: esp32s3 | |
- name: Upload Build Outputs | |
uses: actions/upload-artifact@v4 | |
id: zip_step | |
# TODO: add / remove files below. You may want to include for example | |
# littlefs-flash_args if you have a littlefs filesystem image you want to | |
# include | |
with: | |
name: build-artifacts | |
path: | | |
build/*.bin | |
build/*.elf | |
build/bootloader/bootloader.bin | |
build/partition_table/partition-table.bin | |
build/flasher_args.json | |
build/flash_args | |
- name: Attach files to release | |
uses: softprops/action-gh-release@v2 | |
if: ${{ github.event.release && github.event.action == 'published' }} | |
# TODO: add / remove files below. You may want to include for example | |
# littlefs-flash_args if you have a littlefs filesystem image you want to | |
# include | |
with: | |
files: | | |
build/*.bin | |
build/*.elf | |
build/bootloader/bootloader.bin | |
build/partition_table/partition-table.bin | |
build/flasher_args.json | |
build/flash_args | |
package: | |
name: Package the binaries into an executables for Windows, MacOS, and Linux (Ubuntu) | |
needs: build | |
strategy: | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: esp-cpp/esp-packaged-programmer-action@v1.0.5 | |
with: | |
zipfile-id: ${{ needs.build.outputs.zipfile-id }} | |
# TODO: update programmer name to be what you want to call it | |
programmer-name: 'your_programmer' |