Skip to content

Commit e67baf0

Browse files
committed
fixed mac-os build
1 parent 70aab06 commit e67baf0

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build-cross-platform.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19+
- name: Authenticate git for FetchContent
20+
run: git config --global url."https://${{ github.token }}@github.com/".insteadOf "https://github.com/"
21+
1922
- name: Install CMake 3.29 (Linux)
2023
if: runner.os == 'Linux'
2124
run: |
@@ -27,8 +30,14 @@ jobs:
2730
sudo apt-get update -q
2831
sudo apt-get install -y cmake
2932
33+
- name: Cache FetchContent dependencies
34+
uses: actions/cache@v4
35+
with:
36+
path: build/_deps
37+
key: deps-${{ runner.os }}-${{ hashFiles('cmake/dependencies.cmake', 'shared/CMakeLists.txt') }}
38+
3039
- name: Configure
3140
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
3241

3342
- name: Build
34-
run: cmake --build build --config Debug --parallel
43+
run: cmake --build build --config Debug --parallel

0 commit comments

Comments
 (0)