Product universal payload UF2 in process_ipl.py #6
Workflow file for this run
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 PicoBoot | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_call: | |
| env: | |
| # Customize the CMake build | |
| BUILD_TYPE: RelWithDebInfo # Release, Debug, RelWithDebInfo | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clean workspace | |
| run: | | |
| echo "Cleaning up previous run" | |
| rm -rf "${{ github.workspace }}" | |
| mkdir -p "${{ github.workspace }}" | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Checkout PicoBoot code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set outputs | |
| id: vars | |
| run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - uses: robinraju/release-downloader@v1 | |
| id: gekkoboot-download | |
| with: | |
| repository: 'webhdx/gekkoboot' | |
| latest: true | |
| fileName: '*.zip' | |
| out-file-path: gekkoboot | |
| extract: true | |
| - name: Copy gekkoboot.dol | |
| run: | | |
| cd gekkoboot | |
| if [ -f "gekkoboot.dol" ]; then | |
| cp gekkoboot.dol ${{ github.workspace }}/payload.dol | |
| else | |
| echo "gekkoboot.dol not found" | |
| exit 1 | |
| fi | |
| - name: Build and run Dev Container task | |
| uses: devcontainers/[email protected] | |
| with: | |
| imageName: ghcr.io/webhdx/picoboot | |
| cacheFrom: ghcr.io/webhdx/picoboot | |
| push: never | |
| runCmd: | | |
| tools/build.sh | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: picoboot-${{ steps.vars.outputs.sha_short }} | |
| path: dist/ | |
| - name: Add build summary | |
| run: echo "$(cat .github/build_summary.md)" >> $GITHUB_STEP_SUMMARY |