Skip to content

Commit a421953

Browse files
committed
Switch to a matrix strategy for the Build workflow
1 parent d076a80 commit a421953

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ name: Build
1414
jobs:
1515
board:
1616
runs-on: ubuntu-latest
17-
name: Generate
17+
strategy:
18+
matrix:
19+
board: [corney_island, corney_island_wireless]
20+
name: Generate ${{ matrix.board }}
1821
steps:
1922
- name: Checkout
2023
uses: actions/checkout@v4
@@ -41,29 +44,29 @@ jobs:
4144
- name: Run KiBot to generate images, gerbers for the unrouted board
4245
uses: ./.github/actions/kibot
4346
with:
44-
boards: corney_island corney_island_wireless
47+
boards: ${{ matrix.board }}
4548
config: default
4649
- name: Export DSN file for Freerouting
4750
uses: ./.github/actions/export-dsn
4851
with:
49-
boards: corney_island corney_island_wireless
52+
boards: ${{ matrix.board }}
5053
- name: Autoroute PCB
5154
uses: ./.github/actions/autoroute
5255
with:
53-
boards: corney_island corney_island_wireless
56+
boards: ${{ matrix.board }}
5457
- name: Import SES
5558
uses: ./.github/actions/import-ses
5659
with:
57-
boards: corney_island corney_island_wireless
60+
boards: ${{ matrix.board }}
5861
- name: Run KiBot to generate images, gerbers for the autorouted board
5962
uses: ./.github/actions/kibot
6063
with:
61-
boards: corney_island_autorouted corney_island_wireless_autorouted
64+
boards: ${{ matrix.board }}_autorouted
6265
config: boards
6366
- name: Persist output
6467
uses: actions/upload-artifact@v4
6568
with:
66-
name: corney_island
69+
name: ${{ matrix.board }}
6770
path: |
6871
cases
6972
gerbers

0 commit comments

Comments
 (0)