-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
389 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,50 @@ | ||
on: | ||
push: | ||
branches: [main] | ||
branches: [main, windows] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test-windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout project | ||
uses: actions/[email protected] | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
- name: Setup nightly Zig | ||
uses: mlugg/setup-zig@v1 | ||
with: | ||
version: master | ||
- name: Build test ffi lib | ||
run: zig build-lib -dynamic tests/utils/foreign.zig && mv libforeign.* tests/utils/ | ||
|
||
- name: Run tests Debug | ||
run: zig build test | ||
- name: Cleanup | ||
run: rm -rf zig-out zig-cache | ||
- name: Run tests Debug with JIT always on | ||
run: zig build -Djit_always_on test | ||
- name: Cleanup | ||
run: rm -rf zig-out zig-cache | ||
|
||
- name: Run tests ReleaseSafe | ||
run: zig build -Doptimize=ReleaseSafe test | ||
- name: Cleanup | ||
run: rm -rf zig-out zig-cache | ||
- name: Run tests ReleaseSafe with JIT always on | ||
run: zig build -Doptimize=ReleaseSafe -Djit_always_on test | ||
- name: Cleanup | ||
run: rm -rf zig-out zig-cache | ||
|
||
- name: Run tests ReleaseFast | ||
run: zig build -Doptimize=ReleaseFast test | ||
- name: Cleanup | ||
run: rm -rf zig-out zig-cache | ||
- name: Run tests ReleaseFast with JIT always on | ||
run: zig build -Doptimize=ReleaseFast -Djit_always_on test | ||
- name: Cleanup | ||
run: rm -rf zig-out zig-cache | ||
test-macos: | ||
runs-on: macos-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.