diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index f6e9c78..6409e80 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -34,25 +34,27 @@ 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 + - 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