Skip to content

Commit 4c600bc

Browse files
committed
Try build caching for Windows too
1 parent 238d68a commit 4c600bc

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/cmake.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
submodules: recursive
4242
fetch-depth: 0
4343

44+
- name: ccache
45+
uses: hendrikmuhs/ccache-action@v1.2
46+
with:
47+
key: win64
48+
4449
- name: Set up MSVC environment
4550
uses: ilammy/msvc-dev-cmd@v1
4651
with:
@@ -52,7 +57,7 @@ jobs:
5257
- name: Build plugins
5358
shell: bash
5459
run: |
55-
python3 ./build.py
60+
python3 ./build.py --compiler-launcher ccache
5661
mv Build Build-Win64
5762
5863
- name: Archive Artifacts
@@ -70,10 +75,23 @@ jobs:
7075
submodules: recursive
7176
fetch-depth: 0
7277

78+
- name: ccache
79+
uses: hendrikmuhs/ccache-action@v1.2
80+
with:
81+
key: win32
82+
83+
- name: Set up MSVC environment
84+
uses: ilammy/msvc-dev-cmd@v1
85+
with:
86+
arch: Win32
87+
88+
- name: Install Ninja
89+
uses: seanmiddleditch/gha-setup-ninja@v3
90+
7391
- name: Build plugins
7492
shell: bash
7593
run: |
76-
python3 ./build.py
94+
python3 ./build.py --compiler-launcher ccache
7795
mv Build Build-Win32
7896
7997
- name: Archive Artifacts

build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
)
1515
args = parser.parse_args()
1616

17-
# Detect platform and choose CMake generator
1817
system = platform.system()
1918
if system == "Windows":
2019
cmake_compiler = "-DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl"

0 commit comments

Comments
 (0)