Skip to content

Commit

Permalink
Merge pull request #19 from bestie/build-matrix
Browse files Browse the repository at this point in the history
Github Actions build matrix for all supported boards
  • Loading branch information
RobertDaleSmith authored Jan 16, 2024
2 parents 35ca3f0 + cbd1bf4 commit d0fe9f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,28 @@ on:
push:
branches:
- master
- build-matrix

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
board: [rpi_pico, ada_qtpy, ada_kb2040]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build Docker image and compile for all consoles
run: |
docker build -t usbretro .
docker run --rm -v ${{ github.workspace }}/src/build:/root/workspace/USBRetro/src/build usbretro /bin/bash -c "sh build.sh && cd build && cmake .. && make"
run: docker build -t usbretro .

- name: Compile for target board ${{ matrix.board }}
run: docker run --rm -v ${{ github.workspace }}/src/build:/root/workspace/USBRetro/src/build usbretro /bin/bash -c "sh build_${{ matrix.board }}.sh && cd build && cmake .. && make"

- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: all_console_firmwares_raspberry_pi_pico
name: all_console_firmwares_${{ matrix.board }}
path: ${{ github.workspace }}/src/build/*.uf2
File renamed without changes.

0 comments on commit d0fe9f0

Please sign in to comment.