fw/drivers/dma: add dma driver for sf32lb #1923
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 + SDK Shell) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| changes-qemu-sdkshell: | |
| 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-sdkshell.yml' | |
| - 'platform/**' | |
| - 'resources/**' | |
| - 'sdk/**' | |
| - 'src/**' | |
| - 'stored_apps/**' | |
| - 'tools/**' | |
| - 'third_party/**' | |
| - 'waftools/**' | |
| - 'waf' | |
| - 'wscript' | |
| build-qemu-sdkshell: | |
| needs: changes-qemu-sdkshell | |
| if: needs.changes-qemu-sdkshell.outputs.should-build == 'true' | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: ghcr.io/coredevices/pebbleos-docker:v5 | |
| strategy: | |
| matrix: | |
| board: ["qemu_emery", "qemu_flint", "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 }} --sdkshell | |
| - 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-sdkshell-status: | |
| needs: [changes-qemu-sdkshell, build-qemu-sdkshell] | |
| if: always() | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - if: needs.build-qemu-sdkshell.result == 'failure' || needs.build-qemu-sdkshell.result == 'cancelled' | |
| run: exit 1 |