Merge pull request #153 from kubkon/macho-fix-boundary-typo #1643
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
default_tools: | |
name: Test default system tools | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ macos-12, macos-13, macos-14, ubuntu-latest ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mlugg/setup-zig@v1 | |
with: | |
version: master | |
- run: zig version | |
- run: zig fmt --check src | |
- run: zig build test -Dhas-static -Dhas-zig -Dhas-objc-msgsend-stubs | |
windows: | |
name: Test Windows | |
runs-on: windows-2019 | |
steps: | |
- run: git config --global core.autocrlf false | |
- uses: actions/checkout@v3 | |
- uses: mlugg/setup-zig@v1 | |
with: | |
version: master | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- run: zig version | |
- run: zig fmt --check src | |
- run: zig build test -Dhas-zig | |
gcc_musl: | |
name: Test gcc with musl | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mlugg/setup-zig@v1 | |
with: | |
version: master | |
- run: sudo apt-get install -y musl-tools | |
- run: zig version | |
- run: CC=musl-gcc zig build test -Dhas-static -Dmusl | |
clang_glibc: | |
name: Test clang with glibc | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mlugg/setup-zig@v1 | |
with: | |
version: master | |
- run: sudo apt-get install -y clang | |
- run: zig version | |
- run: CC=clang zig build test -Dhas-static -Dsystem-compiler=clang |