Skip to content

Commit

Permalink
fix: try to fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Dec 21, 2024
1 parent 23ef2bf commit 802c62a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,27 @@ jobs:
- name: externals cache
uses: actions/[email protected]
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/[email protected]
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
- name: Add clang path to $PATH env
shell: bash
if: runner.os == 'Windows'
run: echo "PATH=$PATH:C:\msys64\mingw64\bin" >> $GITHUB_ENV
- 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
Expand Down

0 comments on commit 802c62a

Please sign in to comment.