Skip to content

Commit

Permalink
Update CI workflow with job dependencies (#340)
Browse files Browse the repository at this point in the history
* style: apply yamlls formatting to ci.yml

* ci: added job dependencies on microzig needs where makes sense
  • Loading branch information
EliSauder authored Jan 16, 2025
1 parent c8bd2a2 commit 752386c
Showing 1 changed file with 18 additions and 32 deletions.
50 changes: 18 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
pull_request:
branches: [main, zig-master]


env:
ZIG_VERSION: ${{ github.ref == 'refs/heads/zig-master' && 'master' || '0.13.0' }}

Expand All @@ -26,18 +25,11 @@ jobs:
unit-test-ports:
name: Unit Test Ports
runs-on: ${{ matrix.os }}
needs: build
strategy:
matrix:
os: [
ubuntu-latest,
windows-latest,
macos-latest,
]
port_dir: [
gigadevice/gd32,
raspberrypi/rp2xxx,
stmicro/stm32,
]
os: [ubuntu-latest, windows-latest, macos-latest]
port_dir: [gigadevice/gd32, raspberrypi/rp2xxx, stmicro/stm32]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -53,11 +45,7 @@ jobs:
name: Unit Test Regz
strategy:
matrix:
os: [
ubuntu-latest,
windows-latest,
macos-latest,
]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand All @@ -74,11 +62,7 @@ jobs:
name: Unit Test UF2
strategy:
matrix:
os: [
ubuntu-latest,
windows-latest,
macos-latest,
]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down Expand Up @@ -132,19 +116,21 @@ jobs:
build-examples:
name: Build Examples
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
example_dir: [
espressif/esp,
gigadevice/gd32,
microchip/avr,
microchip/atsam,
nordic/nrf5x,
nxp/lpc,
stmicro/stm32,
raspberrypi/rp2xxx,
wch/ch32v,
]
example_dir:
[
espressif/esp,
gigadevice/gd32,
microchip/avr,
microchip/atsam,
nordic/nrf5x,
nxp/lpc,
stmicro/stm32,
raspberrypi/rp2xxx,
wch/ch32v,
]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 752386c

Please sign in to comment.