Skip to content

Commit

Permalink
ci: add windows to build-and-test
Browse files Browse the repository at this point in the history
  • Loading branch information
dweiller committed Jan 9, 2024
1 parent f431bea commit b06b9e2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ on:

jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
artifact: libzimalloc.so
- os: windows-latest
artifact: zimalloc.*
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -21,6 +29,7 @@ jobs:
version: master

- name: Check formatting
if: runner.os == 'Linux'
run: zig fmt --check .

- name: Run tests
Expand All @@ -38,7 +47,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: libzimalloc
path: zig-out-*/lib/libzimalloc.so
path: zig-out-*/lib/${{ matrix.artifact }}

mimalloc-bench-smoke-test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b06b9e2

Please sign in to comment.