Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite committed Dec 23, 2024
1 parent f5c58aa commit 45e4e0b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 35 deletions.
56 changes: 21 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ jobs:
name: Build
runs-on: ${{ matrix.os }}
continue-on-error: true
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}
steps:
- name: Setup
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}

- name: Build
run: zig build -Doptimize=ReleaseSmall

Expand All @@ -34,64 +32,54 @@ jobs:
raspberrypi/rp2xxx,
stmicro/stm32,
]
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}
steps:
- name: Setup
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}

- name: Unit Test Ports
run: zig build test
working-directory: port/${{ matrix.port_dir }}

unit-test-regz:
name: Unit Test Regz
runs-on: ${{ matrix.os }}
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}
steps:
- name: Setup
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}

- name: Unit Test Regz
run: zig build test
working-directory: tools/regz

unit-test-uf2:
name: Unit Test UF2
runs-on: ${{ matrix.os }}
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}
steps:
- name: Setup
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}

- name: Unit Test UF2
run: zig build test
working-directory: tools/uf2

build-website:
name: Build Website
runs-on: ${{ matrix.os }}
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}
steps:
- name: Setup
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}

- name: Build Website
run: zig build
working-directory: website

dry-run-packaging:
name: Dry Run Packaging
runs-on: macos-latest
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}
steps:
- name: Setup
uses: ./.github/workflows/setup.yml
with:
runner: macos-latest

- name: Dry Run Packaging
run: |
MICROZIG_VERSION=$(zig build package -- get-version)
Expand Down Expand Up @@ -123,12 +111,10 @@ jobs:
raspberrypi/rp2xxx,
wch/ch32v,
]
uses: ./.github/workflows/setup.yml
with:
runner: ${{ matrix.os }}
steps:
- name: Setup
uses: ./.github/workflows/setup.yml
with:
runner: ubuntu-latest

- name: Build Examples
run: zig build -Doptimize=ReleaseSmall --summary all
working-directory: examples/${{ matrix.example_dir }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
setup:
name: Setup
runs-on: ${{ inputs.runner || 'ubuntu-latest' }}
steps:
- name: Checkout
Expand Down

0 comments on commit 45e4e0b

Please sign in to comment.