Skip to content

Commit

Permalink
ci: make matrix entry the single source of jsc api version
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Günzler <r@gnzler.io>
  • Loading branch information
robertgzr committed Mar 14, 2024
1 parent 5585d69 commit 0129329
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,57 +31,49 @@ jobs:
cxx: clang++
type: static
backend: JavaScriptCore
javascriptcore_version: "4.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=4.0
javascriptcore_api_version: "4.0"
- os: ubuntu-latest
cc: gcc
cxx: g++
type: static
backend: JavaScriptCore
javascriptcore_version: "4.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=4.0
javascriptcore_api_version: "4.0"
- os: ubuntu-latest
cc: clang
cxx: clang++
type: shared
backend: JavaScriptCore
javascriptcore_version: "4.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=4.0
javascriptcore_api_version: "4.0"
- os: ubuntu-latest
cc: gcc
cxx: g++
type: shared
backend: JavaScriptCore
javascriptcore_version: "4.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=4.0
javascriptcore_api_version: "4.0"
- os: ubuntu-latest
cc: clang
cxx: clang++
type: static
backend: JavaScriptCore
javascriptcore_version: "6.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=6.0
javascriptcore_api_version: "6.0"
- os: ubuntu-latest
cc: gcc
cxx: g++
type: static
backend: JavaScriptCore
javascriptcore_version: "6.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=6.0
javascriptcore_api_version: "6.0"
- os: ubuntu-latest
cc: clang
cxx: clang++
type: shared
backend: JavaScriptCore
javascriptcore_version: "6.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=6.0
javascriptcore_api_version: "6.0"
- os: ubuntu-latest
cc: gcc
cxx: g++
type: shared
backend: JavaScriptCore
javascriptcore_version: "6.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=6.0
javascriptcore_api_version: "6.0"

# Sanitizers
- os: ubuntu-latest
Expand All @@ -90,16 +82,14 @@ jobs:
type: static
options: -DINCLUDEJS_ADDRESS_SANITIZER:BOOL=ON
backend: JavaScriptCore
javascriptcore_version: "6.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=4.1
javascriptcore_api_version: "4.0"
- os: ubuntu-latest
cc: clang
cxx: clang++
type: static
options: -DINCLUDEJS_UNDEFINED_SANITIZER:BOOL=ON
backend: JavaScriptCore
javascriptcore_version: "6.0"
options: -DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING=4.1
javascriptcore_api_version: "4.0"
- os: macos-latest
cc: clang
cxx: clang++
Expand All @@ -122,7 +112,7 @@ jobs:
if: runner.os == 'linux'
run: |
sudo apt-get update --yes
sudo apt-get install --yes clang-format libjavascriptcoregtk-${{ matrix.platform.javascriptcore_version }}-dev
sudo apt-get install --yes clang-format libjavascriptcoregtk-${{ matrix.platform.javascriptcore_api_version }}-dev
# See https://github.com/actions/runner-images/issues/8659
- name: Workaround Clang issue (GNU/Linux)
Expand All @@ -145,6 +135,7 @@ jobs:
cmake -S . -B ./build
-DCMAKE_BUILD_TYPE:STRING=Release
-DINCLUDEJS_BACKEND:STRING=${{ matrix.platform.backend }}
-DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING={{ matrix.platform.javascriptcore_api_version }}
-DINCLUDEJS_TESTS:BOOL=ON
-DINCLUDEJS_DOCS:BOOL=OFF
-DBUILD_SHARED_LIBS:BOOL=OFF
Expand All @@ -156,6 +147,7 @@ jobs:
cmake -S . -B ./build
-DCMAKE_BUILD_TYPE:STRING=Release
-DINCLUDEJS_BACKEND:STRING=${{ matrix.platform.backend }}
-DINCLUDEJS_BACKEND_JAVASCRIPTCORE_API_VERSION:STRING={{ matrix.platform.javascriptcore_api_version }}
-DINCLUDEJS_TESTS:BOOL=ON
-DINCLUDEJS_DOCS:BOOL=OFF
-DBUILD_SHARED_LIBS:BOOL=ON
Expand Down

0 comments on commit 0129329

Please sign in to comment.