mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use latest buildcache (#7050)
This commit is contained in:
parent
e4ae27f792
commit
bef35b722a
18
.github/workflows/ResInsightWithCache.yml
vendored
18
.github/workflows/ResInsightWithCache.yml
vendored
@ -10,7 +10,7 @@ on:
|
||||
env:
|
||||
NINJA_VERSION: 1.9.0
|
||||
BUILD_TYPE: Release
|
||||
BUILDCACHE_VERSION: 0.18.0
|
||||
BUILDCACHE_VERSION: 0.23.0
|
||||
BUILDCACHE_DIR: ${{ github.workspace }}/buildcache_dir
|
||||
|
||||
jobs:
|
||||
@ -29,14 +29,6 @@ jobs:
|
||||
vcpkg-triplet: x64-windows,
|
||||
cmake-toolchain: 'ThirdParty/vcpkg/scripts/buildsystems/vcpkg.cmake'
|
||||
}
|
||||
- {
|
||||
name: "Ubuntu Latest GCC",
|
||||
os: ubuntu-latest,
|
||||
cc: "gcc", cxx: "g++",
|
||||
vcpkg-response-file: vcpkg_x64-linux.txt,
|
||||
vcpkg-triplet: x64-linux,
|
||||
cmake-toolchain: 'ThirdParty/vcpkg/scripts/buildsystems/vcpkg.cmake'
|
||||
}
|
||||
- {
|
||||
name: "Ubuntu 20.04",
|
||||
os: ubuntu-20.04,
|
||||
@ -75,7 +67,7 @@ jobs:
|
||||
if ("${{ runner.os }}" STREQUAL "Windows")
|
||||
set(buildcache_suffix "win-msvc.zip")
|
||||
elseif ("${{ runner.os }}" STREQUAL "Linux")
|
||||
set(buildcache_suffix "linux.zip")
|
||||
set(buildcache_suffix "linux.tar.gz")
|
||||
endif()
|
||||
|
||||
set(buildcache_version $ENV{BUILDCACHE_VERSION})
|
||||
@ -85,7 +77,7 @@ jobs:
|
||||
|
||||
if (NOT "${{ runner.os }}" STREQUAL "Windows")
|
||||
execute_process(
|
||||
COMMAND chmod +x bin/buildcache
|
||||
COMMAND chmod +x buildcache/bin/buildcache
|
||||
)
|
||||
endif()
|
||||
|
||||
@ -105,7 +97,7 @@ jobs:
|
||||
run: New-Item ${{ env.BUILDCACHE_DIR }} -ItemType "directory" -Force
|
||||
shell: pwsh
|
||||
- name: Add buildcache to system path
|
||||
run: echo "${{github.workspace}}/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
|
||||
run: echo "${{github.workspace}}/buildcache/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8
|
||||
shell: pwsh
|
||||
|
||||
- name: Cache Qt
|
||||
@ -211,7 +203,7 @@ jobs:
|
||||
endif()
|
||||
|
||||
- name: Stats for buildcache
|
||||
run: ${{ github.workspace }}/bin/buildcache -s
|
||||
run: ${{ github.workspace }}/buildcache/bin/buildcache -s
|
||||
|
||||
- name: (Windows) Run Unit Tests
|
||||
if: contains( matrix.config.os, 'windows')
|
||||
|
Loading…
Reference in New Issue
Block a user