Skip to content

Commit

Permalink
DRAFT 675 - test zig build with gc-debug on MacOS and larger timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmai committed Jan 11, 2024
1 parent 76fd8ee commit aea2a04
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 1,274 deletions.
179 changes: 0 additions & 179 deletions .appveyor.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/CodeQL.yml

This file was deleted.

114 changes: 0 additions & 114 deletions .github/workflows/cmake-build.yml

This file was deleted.

39 changes: 23 additions & 16 deletions .github/workflows/zig-build.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
# This workflow is for zig-based build/test running on Linux/x86_64.
# This workflow is for zig-based build/test running on Linux and MacOS (x64).
name: zig build

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
build:
name: thr:${{ matrix.enable_threads }} rwlock:${{ matrix.enable_rwlock }} redir:${{ matrix.redirect_malloc }} gcdeb:${{ matrix.enable_gc_debug }} munmap:${{ matrix.enable_munmap }} paramark:${{ matrix.parallel_mark }} thrlocal:${{ matrix.thread_local_alloc }}
runs-on: ubuntu-latest
timeout-minutes: 4
name: ${{ matrix.os }} thr:${{ matrix.enable_threads }} rwlock:${{ matrix.enable_rwlock }} redir:${{ matrix.redirect_malloc }} gcdeb:${{ matrix.enable_gc_debug }} munmap:${{ matrix.enable_munmap }} paramark:${{ matrix.parallel_mark }} thrlocal:${{ matrix.thread_local_alloc }} dll:${{ matrix.shared_libs }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10

strategy:
fail-fast: false

matrix:
# TODO: move from nightly to zig 0.12 final when released.
zig_version: [ "0.12.0-dev.2076+8fd15c6ca" ]
os: [ macos-latest ] #, ubuntu-latest ]
gc_assertions: [ true ]
large_config: [ false ]
enable_threads: [ false, true ]
enable_threads: [ true ] #false,
disable_handle_fork: [ false ]
enable_rwlock: [ false, true ]
redirect_malloc: [ false, true ]
enable_gc_debug: [ false, true ]
enable_munmap: [ false, true ]
parallel_mark: [ false, true ]
thread_local_alloc: [ false, true ]
shared_libs: [ false ] # FIXME: gctest fail if shared lib
enable_rwlock: [ true ] #false,
redirect_malloc: [ false ] #, true
enable_gc_debug: [ true ] # false,
enable_munmap: [ true ] #false/true
parallel_mark: [ true ] #false/true
thread_local_alloc: [ true ] #false/true
shared_libs: [ true ] #false/true
exclude:
- enable_threads: false
disable_handle_fork: true
Expand All @@ -36,12 +39,16 @@ jobs:
- enable_gc_debug: true # FIXME: some tests fail if gc_debug+redirect
redirect_malloc: true

# TODO: move from nightly to zig 0.12 final when released.
steps:
- uses: actions/checkout@v4
- name: "Install zig"
- name: "Install zig on Linux/x86_64"
if: runner.os == 'Linux'
run: |
mkdir zig && curl https://ziglang.org/builds/zig-linux-x86_64-0.12.0-dev.2076+8fd15c6ca.tar.xz | tar Jx --directory=zig --strip-components=1
mkdir zig && curl https://ziglang.org/builds/zig-linux-x86_64-${{matrix.zig_version}}.tar.xz | tar Jx --directory=zig --strip-components=1
- name: "Install zig on MacOS/x86_64"
if: runner.os == 'macOS'
run: |
mkdir zig && curl https://ziglang.org/builds/zig-macos-x86_64-${{matrix.zig_version}}.tar.xz | tar Jx --directory=zig --strip-components=1
- name: Build
run: >
zig/zig build
Expand Down
Loading

0 comments on commit aea2a04

Please sign in to comment.