From 2349a3da0f08ed9d60afd653ca68c02a102c2867 Mon Sep 17 00:00:00 2001 From: Jhen-Jie Hong Date: Sat, 21 Dec 2024 10:42:56 +0800 Subject: [PATCH] fix: try to fix windows build --- .github/workflows/release-build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index f6e9c78..d124b1c 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -34,25 +34,25 @@ jobs: - name: externals cache uses: actions/cache@v4.0.2 if: runner.os != 'Windows' - env: - CMAKE_BUILD_PARALLEL_LEVEL: 4 with: path: externals key: ${{ runner.os }}-externals-${{ hashFiles('scripts/prepare-*.sh') }} - name: externals cache (Windows) uses: actions/cache@v4.0.2 if: runner.os == 'Windows' - env: - CMAKE_BUILD_PARALLEL_LEVEL: 4 with: path: externals key: ${{ runner.os }}-externals-${{ hashFiles('scripts/prepare-*.ps1') }} - name: Install dependencies run: yarn install + - uses: msys2/setup-msys2@v2 + if: runner.os == 'Windows' - name: Prepare & build (Windows) if: runner.os == 'Windows' env: CMAKE_BUILD_PARALLEL_LEVEL: 4 + CMAKE_C_COMPILER: clang + CMAKE_CXX_COMPILER: clang++ run: | powershell ./scripts/prepare-windows.ps1 powershell ./scripts/build-windows.ps1