chore(zig): zig 0.14.0-dev.1588+2111f4c38 #957
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
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
# test-macos: | |
# runs-on: macos-latest | |
# steps: | |
# - name: Install homebrew | |
# run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# - name: Install pcre | |
# run: brew install pcre | |
# - name: Checkout project | |
# uses: actions/checkout@v3.0.0 | |
# - 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-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3.0.0 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Configure pcre2 | |
run: cp vendors/pcre2/src/pcre2_chartables.c.dist vendors/pcre2/src/pcre2_chartables.c && cd vendors/pcre2 && ./configure && cd ../.. | |
- 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 | |
wasm-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3.0.0 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Configure pcre2 | |
run: cp vendors/pcre2/src/pcre2_chartables.c.dist vendors/pcre2/src/pcre2_chartables.c && cd vendors/pcre2 && ./configure && cd ../.. | |
- name: Setup nightly Zig | |
uses: mlugg/setup-zig@v1 | |
with: | |
version: master | |
- name: Build for wasm | |
run: zig build -Dtarget=wasm32-freestanding -freference-trace -Doptimize=ReleaseSmall | |
- name: Cleanup | |
run: rm -rf zig-out zig-cache | |
lint: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3.0.0 | |
- name: Setup nightly Zig | |
uses: mlugg/setup-zig@v1 | |
with: | |
version: master | |
- run: zig fmt --check src/*.zig src/**/*.zig |