Health: Add current bin in typical step text #3526
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 PRF | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| changes-prf: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| pull-requests: read | |
| outputs: | |
| should-build: ${{ github.event_name == 'push' || steps.filter.outputs.src == 'true' }} | |
| steps: | |
| - uses: dorny/paths-filter@v3 | |
| if: github.event_name == 'pull_request' | |
| id: filter | |
| with: | |
| filters: | | |
| src: | |
| - '.github/workflows/build-prf.yml' | |
| - 'platform/**' | |
| - 'resources/**' | |
| - 'src/**' | |
| - 'tools/**' | |
| - 'third_party/**' | |
| - 'waftools/**' | |
| - 'waf' | |
| - 'wscript' | |
| build-prf: | |
| needs: changes-prf | |
| if: needs.changes-prf.outputs.should-build == 'true' | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ghcr.io/coredevices/pebbleos-docker:v5 | |
| strategy: | |
| matrix: | |
| board: | |
| - asterix | |
| - obelix_dvt | |
| - obelix_pvt | |
| - getafix_evt | |
| - getafix_dvt | |
| - getafix_dvt2 | |
| mode: | |
| - normal | |
| - mfg | |
| steps: | |
| - name: Mark Github workspace as safe | |
| run: git config --system --add safe.directory "${GITHUB_WORKSPACE}" | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: true | |
| - name: Install Python dependencies | |
| run: | | |
| pip install -U pip | |
| pip install -r requirements.txt | |
| - name: Get npm cache directory | |
| id: npm-cache-dir | |
| shell: bash | |
| run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | |
| - name: Configure | |
| run: | | |
| if [ "${{ matrix.mode }}" == "mfg" ]; then | |
| OPTS="--mfg --nohash" | |
| fi | |
| ./waf configure --board ${{ matrix.board }} --variant=prf $OPTS | |
| - name: Build | |
| run: ./waf build | |
| - name: Bundle | |
| run: ./waf bundle | |
| - name: Store | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: prf-${{ matrix.board }}-${{ matrix.mode }} | |
| path: | | |
| build/**/*.elf | |
| build/**/*.pbz | |
| build/src/fw/tintin_fw_loghash_dict.json | |
| - name: Get Build ID | |
| id: build_id | |
| run: | | |
| echo "BUILD_ID=$(readelf -n build/src/fw/tintin_fw.elf | sed -n -e 's/^.*Build ID: //p')" >> "$GITHUB_OUTPUT" | |
| - name: Upload log hash dictionary | |
| uses: Noelware/s3-action@2.3.1 | |
| if: ${{ github.event_name == 'push' && github.repository == 'coredevices/PebbleOS' }} | |
| with: | |
| access-key-id: ${{ secrets.LOG_HASH_BUCKET_KEY_ID }} | |
| secret-key: ${{ secrets.LOG_HASH_BUCKET_SECRET }} | |
| endpoint: ${{ vars.LOG_HASH_BUCKET_ENDPOINT }} | |
| bucket: ${{ vars.LOG_HASH_BUCKET_NAME }} | |
| files: | | |
| build/src/fw/tintin_fw_loghash_dict.json | |
| path-format: ${{ steps.build_id.outputs.BUILD_ID }}-${{ github.sha }}-prf.json | |
| build-prf-status: | |
| needs: [changes-prf, build-prf] | |
| if: always() | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - if: needs.build-prf.result == 'failure' || needs.build-prf.result == 'cancelled' | |
| run: exit 1 |