fw/applib: Provide sdk music volume and sound for iOS find phone app and others #3459
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 Firmware (QEMU) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| changes-qemu: | |
| 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-qemu.yml' | |
| - 'platform/**' | |
| - 'resources/**' | |
| - 'sdk/**' | |
| - 'src/**' | |
| - 'stored_apps/**' | |
| - 'tools/**' | |
| - 'third_party/**' | |
| - 'waftools/**' | |
| - 'waf' | |
| - 'wscript' | |
| build-qemu: | |
| needs: changes-qemu | |
| if: needs.changes-qemu.outputs.should-build == 'true' | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ghcr.io/coredevices/pebbleos-docker:v5 | |
| strategy: | |
| matrix: | |
| board: ["qemu_flint", "qemu_emery", "qemu_gabbro"] | |
| 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: ./waf configure --board ${{ matrix.board }} --nohash | |
| - name: Build | |
| run: ./waf build qemu_image_micro qemu_image_spi | |
| - name: Store | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: firmware-${{ matrix.board }}-qemu | |
| path: | | |
| build/qemu_micro_flash.bin | |
| build/qemu_spi_flash.bin | |
| build-qemu-status: | |
| needs: [changes-qemu, build-qemu] | |
| if: always() | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - if: needs.build-qemu.result == 'failure' || needs.build-qemu.result == 'cancelled' | |
| run: exit 1 |