fix(pin): clamp a corrupted wipe threshold instead of wiping #295
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: 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, wave_7b] | |
| 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-site: | |
| 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 site sources | |
| uses: actions/checkout@v4 | |
| - name: Download wave_4b firmware | |
| uses: actions/download-artifact@v4.1.3 | |
| with: | |
| name: firmware-wave_4b | |
| path: site/flash/firmware/wave_4b | |
| - name: Download wave_35 firmware | |
| uses: actions/download-artifact@v4.1.3 | |
| with: | |
| name: firmware-wave_35 | |
| path: site/flash/firmware/wave_35 | |
| - name: Download wave_5 firmware | |
| uses: actions/download-artifact@v4.1.3 | |
| with: | |
| name: firmware-wave_5 | |
| path: site/flash/firmware/wave_5 | |
| - name: Download wave_43 firmware | |
| uses: actions/download-artifact@v4.1.3 | |
| with: | |
| name: firmware-wave_43 | |
| path: site/flash/firmware/wave_43 | |
| - name: Download crowpanel firmware | |
| uses: actions/download-artifact@v4.1.3 | |
| with: | |
| name: firmware-crowpanel | |
| path: site/flash/firmware/crowpanel | |
| - name: Download wave_7b firmware | |
| uses: actions/download-artifact@v4.1.3 | |
| with: | |
| name: firmware-wave_7b | |
| path: site/flash/firmware/wave_7b | |
| - name: Stage branding assets | |
| run: cp -r branding site/branding | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: site/ | |
| 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 }} |