chore: Updated CHANGELOG #585
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/[email protected] | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Build MIR | |
run: cd mir && make && cd .. | |
- name: Setup nightly Zig | |
uses: goto-bus-stop/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 | |
run: BUZZ_PATH=./dist zig build -Duse_mimalloc=false -Doptimize=ReleaseSafe -p dist test | |
- name: Cleanup | |
run: rm -rf zig-cache dist | |
- name: Run tests with JIT always on | |
run: BUZZ_PATH=./dist zig build -Djit_always_on -Duse_mimalloc=false -Doptimize=ReleaseSafe -p dist test | |
- name: Cleanup | |
run: rm -rf zig-cache dist | |
test-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/[email protected] | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Build MIR | |
run: cd mir && make && cd .. | |
- name: Setup nightly Zig | |
uses: goto-bus-stop/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 | |
run: BUZZ_PATH=./dist zig build -Duse_mimalloc=false -Doptimize=ReleaseSafe -p dist test | |
- name: Cleanup | |
run: rm -rf zig-cache dist | |
- name: Run tests with JIT always on | |
run: BUZZ_PATH=./dist zig build -Djit_always_on -Duse_mimalloc=false -Doptimize=ReleaseSafe -p dist test | |
- name: Cleanup | |
run: rm -rf zig-cache dist | |
lint: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup nightly Zig | |
uses: goto-bus-stop/setup-zig@v1 | |
with: | |
version: master | |
- run: zig fmt --check src/*.zig src/**/*.zig |