Destroy duk heap when calling goto_main_gui #126
This file contains 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 CapibaraZero firmware | |
on: [push] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
- name: Prepare Duktape library | |
run: bash init_libs.sh | |
- name: Prepare release folder | |
run: mkdir release | |
- name: Build ESP32-S3-DevKitC | |
run: bash prepare_image.sh "esp32-s3-devkitc-1" && cp build/*.zip release | |
- name: Build Arduino Nano ESP32 | |
run: bash prepare_image.sh "arduino_nano_esp32" && cp build/*.zip release | |
- name: Build LilyGo T-Embed CC1101 | |
run: bash prepare_image.sh "lilygo_t_embed_cc1101" && cp build/*.zip release | |
- name: Generate release tag | |
run: echo TAG_NAME=0.5.2-$(date +"%Y_%m_%d_%S") >> $GITHUB_ENV | |
- name: Create release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/heads/develop') | |
with: | |
tag_name: ${{ env.TAG_NAME }} | |
target_commitish: ${{ github.ref }} | |
name: "CapibaraZero ${{ github.ref }} beta" | |
make_latest: true | |
prerelease: true | |
files: release/* |