Skip to content

Commit

Permalink
DRAFT 630 - test GH Actions with Zig build/test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmai committed Dec 25, 2023
1 parent 71d1ba4 commit b683803
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 1,130 deletions.
179 changes: 0 additions & 179 deletions .appveyor.yml

This file was deleted.

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

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/zig-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This workflow is for zig-based build/test running on Linux/x86_64.
name: zig build

on: [push, pull_request]

jobs:
build:
name: thr:${{ matrix.enable_threads }} rwlock::${{ matrix.rwlock }} gc_dbg::${{ matrix.gc_debug }} redir:${{ matrix.redirect_malloc }} dll:${{ matrix.shared_libs }} chksum:${{ matrix.checksums }} no_handfork:${{ matrix.disable_handle_fork }} assert:${{ matrix.gc_assertions }} unmap:${{ matrix.munmap }} parallel:${{ matrix.parallel_mark }} thread-local:${{ matrix.thread_local_alloc }}
runs-on: ubuntu-latest

strategy:
# Deliver the feedback for all matrix combinations.
fail-fast: false

matrix:
large_config: [ true ]
enable_threads: [ false, true ]
checksums: [ false, true ]
disable_handle_fork: [ false, true ]
gc_assertions: [ false, true ]
gc_debug: [ false, true ]
redirect_malloc: [ false, true ]
munmap: [ false, true ]
parallel_mark: [ false, true ]
rwlock: [ false, true ]
thread_local_alloc: [ false, true ]
shared_libs: [ false, true ]
exclude:
- checksums: true
enable_threads: true
- checksums: true
redirect_malloc: true
- enable_threads: false
disable_handle_fork: true
- enable_threads: false
parallel_mark: true
- enable_threads: false
rwlock: true
- enable_threads: false
thread_local_alloc: true

# TODO: move from nightly to zig 0.12 when released.
steps:
- uses: actions/checkout@v4
- name: "Install zig"
run: |
mkdir zig && curl https://ziglang.org/builds/zig-linux-x86_64-0.12.0-dev.1814+5c0d58b71.tar.xz | tar Jx --directory=zig --strip-components=1
- name: Build
run: >
zig/zig build
-DBUILD_SHARED_LIBS=${{ matrix.shared_libs }}
-Dbuild_tests=true
-Ddisable_handle_fork=${{ matrix.disable_handle_fork }}
-Denable_checksums=${{ matrix.checksums }}
-Denable_gc_assertions=${{ matrix.gc_assertions }}
-Denable_gc_debug=${{ matrix.gc_debug }}
-Denable_large_config=${{ matrix.large_config }}
-Denable_munmap=${{ matrix.munmap }}
-Denable_parallel_mark=${{ matrix.parallel_mark }}
-Denable_redirect_malloc=${{ matrix.redirect_malloc }}
-Denable_rwlock=${{ matrix.rwlock }}
-Denable_thread_local_alloc=${{ matrix.thread_local_alloc }}
-Denable_threads=${{ matrix.enable_threads }}
-Denable_werror=true
test
33 changes: 0 additions & 33 deletions .github/workflows/zig-xbuild.yml

This file was deleted.

Loading

0 comments on commit b683803

Please sign in to comment.