This is an automated email from the ASF dual-hosted git repository.
szaszm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 327ade8a4 MINIFICPP-1914 Do not use clcache in the Windows CI job
327ade8a4 is described below
commit 327ade8a40034f2fedd30a6c284953013aae6143
Author: Ferenc Gerlits <[email protected]>
AuthorDate: Fri Aug 19 14:08:42 2022 +0200
MINIFICPP-1914 Do not use clcache in the Windows CI job
... as it causes the build to fail with mysterious errors.
Closes #1397
Signed-off-by: Marton Szasz <[email protected]>
---
.github/workflows/ci.yml | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 50ca97b76..eafe39a8e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -45,21 +45,11 @@ jobs:
name: "windows-2019"
runs-on: windows-2019
timeout-minutes: 180
- env:
- CLCACHE_DIR: ${{ GITHUB.WORKSPACE }}\clcache
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- id: checkout
uses: actions/checkout@v2
- - id: cache
- uses: actions/cache@v2
- with:
- path: ${{ env.CLCACHE_DIR }}
- key: windows-2019-clcache-${{github.ref}}-${{github.sha}}
- restore-keys: |
- windows-2019-clcache-${{github.ref}}-
- windows-2019-clcache-refs/heads/main-
- name: Setup PATH
uses: microsoft/[email protected]
- id: install-sqliteodbc-driver
@@ -67,16 +57,6 @@ jobs:
Invoke-WebRequest -Uri
"http://www.ch-werner.de/sqliteodbc/sqliteodbc_w64.exe" -OutFile
"sqliteodbc_w64.exe"
./sqliteodbc_w64.exe /S
shell: powershell
- - name: Setup clcache
- run: |
- (New-Object
System.Net.WebClient).DownloadFile('https://github.com/frerich/clcache/releases/download/v4.2.0/clcache-4.2.0.zip',
"$pwd\clcache.zip")
- $cl_exe_dir = Split-Path -parent $(vswhere -latest -requires
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -find
VC\Tools\MSVC\**\bin\Hostx64\x64\cl.exe | select-object -last 1)
- Expand-Archive -Force -Path clcache.zip -DestinationPath
"$cl_exe_dir";
- move "$cl_exe_dir\cl.exe" "$cl_exe_dir\cl_original.exe"
- move "$cl_exe_dir\cl.exe.config" "$cl_exe_dir\cl_original.exe.config"
- move "$cl_exe_dir\clcache.exe" "$cl_exe_dir\cl.exe"
- echo "CLCACHE_CL=$cl_exe_dir\cl_original.exe" >> $env:GITHUB_ENV
- echo "CLCACHE_NODIRECT=1" >> $env:GITHUB_ENV
- name: build
run: |
PATH %PATH%;C:\Program Files (x86)\Windows
Kits\10\bin\10.0.19041.0\x64