mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-06-19 04:15:06 +00:00
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
name: Build
|
|
|
|
inputs:
|
|
board_id:
|
|
description: The sdkconfig file to build
|
|
required: true
|
|
arch:
|
|
description: The ESP32 SOC variant
|
|
required: true
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: 'Board select'
|
|
shell: bash
|
|
run: python device.py ${{ inputs.board_id }}
|
|
- name: 'Build'
|
|
uses: espressif/esp-idf-ci-action@v1
|
|
with:
|
|
esp_idf_version: v5.5.2
|
|
target: ${{ inputs.arch }}
|
|
path: './'
|
|
- name: 'Release'
|
|
shell: bash
|
|
run: Buildscripts/release.sh ${{ inputs.board_id }}
|
|
- name: 'Merge binary'
|
|
shell: bash
|
|
run: |
|
|
python -m pip install esptool
|
|
cd release/Tactility-${{ inputs.board_id }}
|
|
bash ./merge.sh ${{ inputs.arch }}
|
|
mv Binaries/merged_binary.bin ../Tactility-${{ inputs.board_id }}.bin
|
|
- name: 'Upload Artifact: Release'
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Tactility-${{ inputs.board_id }}
|
|
path: release/Tactility-${{ inputs.board_id }}
|
|
retention-days: 30
|
|
- name: 'Upload Artifact: Release symbols'
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Tactility-${{ inputs.board_id }}-symbols
|
|
path: release/Tactility-${{ inputs.board_id }}-symbols
|
|
retention-days: 30
|
|
- name: 'Upload Artifact: Merged binary'
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Tactility-${{ inputs.board_id }}.bin
|
|
path: release/Tactility-${{ inputs.board_id }}.bin
|
|
retention-days: 30
|