Skip to content

Commit

Permalink
More GH action fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenke committed Dec 21, 2024
1 parent db85826 commit 73cb4c7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/cmake-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,20 @@ jobs:
fail-fast: false

matrix:
build_type: [Debug, Release]
build_type: [ Debug, Release ]

steps:
- uses: actions/github-script@v6
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: actions/checkout@v4

- name: Install ninja
run: brew install ninja

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/cmake-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
fail-fast: false

matrix:
build_type: [Debug, Release]
toolchain: [GNU, LLVM]
build_type: [ Debug, Release ]
toolchain: [ GNU, LLVM ]
include:
- toolchain: GNU
c_compiler: gcc
Expand All @@ -28,8 +28,17 @@ jobs:
cpp_compiler: clang++

steps:
- uses: actions/github-script@v6
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: actions/checkout@v4

- name: Install ninja
run: apt install ninja

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/cmake-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ jobs:
fail-fast: false

matrix:
build_type: [Debug, Release]
build_type: [ Debug, Release ]

steps:
- uses: actions/github-script@v6
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: actions/checkout@v4

- name: Install pkg-config on Windows
Expand Down

0 comments on commit 73cb4c7

Please sign in to comment.