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 Sep 25, 2023
1 parent 51f0d89 commit 996be65
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: 0.11.0

- name: Check formatting
if: ${{ matrix.os }} != windows-latest
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 996be65

Please sign in to comment.