Skip to content

SD card Updates

SD card Updates #242

Workflow file for this run

name: Test All Builds
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
container: espressif/idf:v6.0.2
strategy:
fail-fast: false
matrix:
board: [wave_4b, wave_35, wave_5, wave_43, crowpanel]
name: build (${{ matrix.board }})
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build (${{ matrix.board }})
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
. $IDF_PATH/export.sh
idf.py -B build_${{ matrix.board }} \
-D SDKCONFIG=build_${{ matrix.board }}/sdkconfig \
-D 'SDKCONFIG_DEFAULTS=sdkconfig.defaults;sdkconfig.defaults.${{ matrix.board }}' \
build all size-components size
- name: Stage flashable firmware (${{ matrix.board }})
run: |
STAGE="firmware_${{ matrix.board }}"
BUILD="build_${{ matrix.board }}"
mkdir -p "$STAGE"
cp "$BUILD"/bootloader/bootloader.bin "$STAGE"/
cp "$BUILD"/partition_table/partition-table.bin "$STAGE"/
cp "$BUILD"/flasher_args.json "$STAGE"/
cp "$BUILD"/*.bin "$STAGE"/ 2>/dev/null || true
cp "$BUILD"/flash_args "$STAGE"/ 2>/dev/null || true
cp "$BUILD"/*.elf "$STAGE"/ 2>/dev/null || true
cp "$BUILD"/*.map "$STAGE"/ 2>/dev/null || true
- name: Upload firmware artifact (${{ matrix.board }})
uses: actions/upload-artifact@v4
with:
name: firmware-${{ matrix.board }}
path: firmware_${{ matrix.board }}/
if-no-files-found: error
retention-days: 30
deploy-flasher:
needs: [build]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout flasher sources
uses: actions/checkout@v4
- name: Download wave_4b firmware
uses: actions/download-artifact@v4.1.3
with:
name: firmware-wave_4b
path: flasher/firmware/wave_4b
- name: Download wave_35 firmware
uses: actions/download-artifact@v4.1.3
with:
name: firmware-wave_35
path: flasher/firmware/wave_35
- name: Download wave_5 firmware
uses: actions/download-artifact@v4.1.3
with:
name: firmware-wave_5
path: flasher/firmware/wave_5
- name: Download wave_43 firmware
uses: actions/download-artifact@v4.1.3
with:
name: firmware-wave_43
path: flasher/firmware/wave_43
- name: Download crowpanel firmware
uses: actions/download-artifact@v4.1.3
with:
name: firmware-crowpanel
path: flasher/firmware/crowpanel
- name: Stage branding assets
run: cp -r branding flasher/branding
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: flasher/
name: github-pages-${{ github.run_attempt }}
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: github-pages-${{ github.run_attempt }}