Skip to content

Commit

Permalink
Fix running of test and tools on windows and macos (#6)
Browse files Browse the repository at this point in the history
* Run build tools on windows also to help catch regressions

* Overhaul and modularize build.zig

Also ensure one can build on and for windows
Awaiting testing to ensure test run on windows

resolves #3

* tools: disable mplay tool

It isn't cross compilable to windows due to the use of sys/wait.h
which is a posix system header

It also doesn't compile on musl libc because mplay modifies stdin and
stdout which are const in musl libc

The darling issue has been splited from #3 into #7
  • Loading branch information
Ultra-Code authored Dec 16, 2024
1 parent 7fc5609 commit 974d4f9
Show file tree
Hide file tree
Showing 2 changed files with 280 additions and 201 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ jobs:
version: ${{ matrix.zig-version }}
use-cache: false

- name: Run `build tools on macos`
run: zig build tools -Dtarget=x86_64-macos-none --summary all
- name: Run `build tools on macos and windows`
run: |
zig build tools -Dtarget=x86_64-macos --summary all
zig build tools -Dtarget=x86_64-windows --summary all
test:
strategy:
Expand Down
Loading

0 comments on commit 974d4f9

Please sign in to comment.