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 25b6e28 commit 1e6b15e
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ github.ref == 'refs/heads/zig-master' && 'master' || '0.13.0' }}
uses: ./.github/workflows/setup-zig.yml
- name: Build
run: zig build -Doptimize=ReleaseSmall

Expand All @@ -38,9 +36,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ github.ref == 'refs/heads/zig-master' && 'master' || '0.13.0' }}
uses: ./.github/workflows/setup-zig.yml
- name: Unit Test Ports
run: zig build test
working-directory: port/${{ matrix.port_dir }}
Expand All @@ -59,9 +55,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ github.ref == 'refs/heads/zig-master' && 'master' || '0.13.0' }}
uses: ./.github/workflows/setup-zig.yml
- name: Unit Test Regz
run: zig build test
working-directory: tools/regz
Expand All @@ -80,30 +74,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ github.ref == 'refs/heads/zig-master' && 'master' || '0.13.0' }}
uses: ./.github/workflows/setup-zig.yml
- name: Unit Test UF2
run: zig build test
working-directory: tools/uf2

build-website:
name: Build Website
strategy:
matrix:
os: [
ubuntu-latest,
windows-latest,
macos-latest,
]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ github.ref == 'refs/heads/zig-master' && 'master' || '0.13.0' }}
uses: ./.github/workflows/setup-zig.yml
- name: Build Website
run: zig build
working-directory: website
Expand All @@ -115,9 +98,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ github.ref == 'refs/heads/zig-master' && 'master' || '0.13.0' }}
uses: ./.github/workflows/setup-zig.yml
- name: Dry Run Packaging
run: |
MICROZIG_VERSION=$(zig build package -- get-version)
Expand Down Expand Up @@ -152,9 +133,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Zig
uses: mlugg/setup-zig@v1
with:
version: ${{ github.ref == 'refs/heads/zig-master' && 'master' || '0.13.0' }}
uses: ./.github/workflows/setup-zig.yml
- name: Build Examples
run: zig build -Doptimize=ReleaseSmall --summary all
working-directory: examples/${{ matrix.example_dir }}
Expand Down

0 comments on commit 1e6b15e

Please sign in to comment.