mirror of https://github.com/PCSX2/pcsx2.git
GHActions: Disable buildcache on windows
Not compatible with PDB
This commit is contained in:
parent
bb56f274c8
commit
2aabd54e6a
|
@ -38,11 +38,6 @@ jobs:
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
env:
|
env:
|
||||||
POWERSHELL_TELEMETRY_OPTOUT: 1
|
POWERSHELL_TELEMETRY_OPTOUT: 1
|
||||||
BUILDCACHE_COMPRESS_FORMAT: ZSTD
|
|
||||||
BUILDCACHE_COMPRESS_LEVEL: 9
|
|
||||||
BUILDCACHE_MAX_CACHE_SIZE: 536870912 # 512MB
|
|
||||||
BUILDCACHE_DIRECT_MODE: true
|
|
||||||
BUILDCACHE_LOG_FILE: ${{ github.workspace }}\buildcache.log
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
|
@ -65,12 +60,6 @@ jobs:
|
||||||
PR_SHA: ${{ github.event.pull_request.head.sha }}
|
PR_SHA: ${{ github.event.pull_request.head.sha }}
|
||||||
run: ./.github/workflows/scripts/common/name-artifacts.sh
|
run: ./.github/workflows/scripts/common/name-artifacts.sh
|
||||||
|
|
||||||
- name: Setup Buildcache
|
|
||||||
if: inputs.configuration == 'CMake' # TODO: buildcache on VS
|
|
||||||
uses: mikehardy/buildcache-action@v1.3.0
|
|
||||||
with:
|
|
||||||
cache_key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.configuration }}
|
|
||||||
|
|
||||||
- name: Setup msbuild
|
- name: Setup msbuild
|
||||||
if: inputs.configuration != 'CMake'
|
if: inputs.configuration != 'CMake'
|
||||||
uses: microsoft/setup-msbuild@v1
|
uses: microsoft/setup-msbuild@v1
|
||||||
|
@ -89,7 +78,7 @@ jobs:
|
||||||
if "${{ inputs.platform }}"=="Win32" (SET vcvars=vcvarsamd64_x86.bat) else (SET vcvars=vcvars64.bat)
|
if "${{ inputs.platform }}"=="Win32" (SET vcvars=vcvarsamd64_x86.bat) else (SET vcvars=vcvars64.bat)
|
||||||
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\%vcvars%"
|
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\%vcvars%"
|
||||||
echo ::set-output name=vcvars::%vcvars%
|
echo ::set-output name=vcvars::%vcvars%
|
||||||
cmake . -B build -DCMAKE_BUILD_TYPE=Release -DLTO_PCSX2_CORE=ON -G Ninja -DCMAKE_C_COMPILER_LAUNCHER=..\buildcache\bin\buildcache.exe -DCMAKE_CXX_COMPILER_LAUNCHER=..\buildcache\bin\buildcache.exe -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
|
cmake . -B build -DCMAKE_BUILD_TYPE=Release -DLTO_PCSX2_CORE=ON -G Ninja
|
||||||
|
|
||||||
- name: Build PCSX2
|
- name: Build PCSX2
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
Loading…
Reference in New Issue