From f3cd6ab0a3f2135056b60e4c8d00c1708f15b259 Mon Sep 17 00:00:00 2001 From: EliSauder <24995216+EliSauder@users.noreply.github.com> Date: Fri, 27 Dec 2024 19:03:35 -0800 Subject: [PATCH 1/2] style: apply yamlls formatting to ci.yml --- .github/workflows/ci.yml | 48 ++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ed1a658..b3d25830 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,6 @@ on: pull_request: branches: [main, zig-master] - env: ZIG_VERSION: ${{ github.ref == 'refs/heads/zig-master' && 'master' || '0.13.0' }} @@ -28,16 +27,8 @@ jobs: runs-on: ${{ matrix.os }} 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 @@ -53,11 +44,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 @@ -74,11 +61,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 @@ -134,17 +117,18 @@ jobs: runs-on: ubuntu-latest 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 From f678cabd1db300057739d3627d926c0bc579dca4 Mon Sep 17 00:00:00 2001 From: EliSauder <24995216+EliSauder@users.noreply.github.com> Date: Fri, 27 Dec 2024 19:05:04 -0800 Subject: [PATCH 2/2] ci: added job dependencies on microzig needs where makes sense --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3d25830..b5e3e45e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,7 @@ jobs: unit-test-ports: name: Unit Test Ports runs-on: ${{ matrix.os }} + needs: build strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] @@ -115,6 +116,7 @@ jobs: build-examples: name: Build Examples runs-on: ubuntu-latest + needs: build strategy: matrix: example_dir: