Skip to content

Commit

Permalink
DRAFT 610 - test GH Actions with some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmai committed Nov 12, 2023
1 parent 57be926 commit 13c7b98
Show file tree
Hide file tree
Showing 12 changed files with 130 additions and 1,064 deletions.
178 changes: 0 additions & 178 deletions .appveyor.yml

This file was deleted.

55 changes: 39 additions & 16 deletions .github/workflows/cmake-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]

jobs:
build:
name: ${{ matrix.os }} ${{ matrix.c_compiler }} thr:${{ matrix.enable_threads }} redir:${{ matrix.redirect_malloc }} dll:${{ matrix.shared_libs }}
name: ${{ matrix.os }} ${{ matrix.c_compiler }} thr:${{ matrix.enable_threads }} rwlock::${{ matrix.enable_rwlock }} redir:${{ matrix.redirect_malloc }} dll:${{ matrix.shared_libs }} cpp::${{ matrix.enable_cplusplus }}
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -15,11 +15,14 @@ jobs:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
c_compiler: [ cl, clang, gcc ]
cxx_compiler: [ cl, clang++, g++ ]
enable_cplusplus: [ off, on ]
build_type: [ Release ]
disable_gc_debug: [ off ]
gc_assertions: [ off ]
large_config: [ off ]
gc_assertions: [ on ]
large_config: [ on ]
enable_threads: [ off, on ]
enable_rwlock: [ off, on ]
redirect_malloc: [ off, on ]
shared_libs: [ off, on ]
exclude:
Expand All @@ -29,29 +32,46 @@ jobs:
c_compiler: gcc
- os: ubuntu-latest
c_compiler: cl
- os: windows-latest # TODO: support dependency on libatomic_ops
c_compiler: cl
enable_threads: on
- os: windows-latest # TODO: enable following
c_compiler: clang
- enable_threads: off
enable_rwlock: on
- c_compiler: cl
cxx_compiler: clang++
- c_compiler: cl
cxx_compiler: g++
- c_compiler: clang
cxx_compiler: cl
- c_compiler: clang
cxx_compiler: g++
- c_compiler: gcc
cxx_compiler: cl
- c_compiler: gcc
cxx_compiler: clang++
- os: macos-latest
c_compiler: clang
enable_threads: on
redirect_malloc: on
enable_cplusplus: off
- os: ubuntu-latest
enable_cplusplus: off
- os: windows-latest
c_compiler: cl
enable_threads: off
redirect_malloc: on
enable_cplusplus: off
- os: windows-latest # TODO: replacement operator cannot be inline
c_compiler: clang
enable_cplusplus: on
- os: windows-latest
c_compiler: gcc
enable_cplusplus: off
- os: windows-latest # TODO: support dependency on libatomic_ops
c_compiler: cl
enable_threads: on
- os: macos-latest # FIXME: enable this after fixing assert fail
enable_threads: on
redirect_malloc: on
include:
- os: windows-latest
c_compiler: gcc
cmake_generator_opt: '-G "Unix Makefiles"'
#- os: windows-latest
# c_compiler: clang
# cmake_generator_opt: '-G "Unix Makefiles"'
- os: windows-latest
c_compiler: clang
cmake_generator_opt: '-G "Unix Makefiles"'

steps:
- uses: actions/checkout@v4
Expand All @@ -70,12 +90,15 @@ jobs:
${{ matrix.cmake_generator_opt }}
-DBUILD_SHARED_LIBS=${{ matrix.shared_libs }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-Dbuild_tests=ON
-Ddisable_gc_debug=${{ matrix.disable_gc_debug }}
-Denable_cplusplus=${{ matrix.enable_cplusplus }}
-Denable_gc_assertions=${{ matrix.gc_assertions }}
-Denable_large_config=${{ matrix.large_config }}
-Denable_redirect_malloc=${{ matrix.redirect_malloc }}
-Denable_rwlock=${{ matrix.enable_rwlock }}
-Denable_threads=${{ matrix.enable_threads }}
-Denable_werror=ON
-Werror=dev
Expand Down
Loading

0 comments on commit 13c7b98

Please sign in to comment.