23
23
24
24
steps :
25
25
- uses : actions/checkout@v4
26
+ with :
27
+ fetch-depth : 0
28
+ submodules : recursive
26
29
27
30
- uses : jurplel/install-qt-action@v4
28
31
with :
31
34
32
35
- uses : actions/setup-go@v5
33
36
with :
34
- go-version : ' ^1.24.0'
37
+ go-version : " ^1.24.0"
35
38
36
39
- name : Install Linux dependencies
37
40
if : startsWith( matrix.os, 'ubuntu' )
@@ -40,28 +43,45 @@ jobs:
40
43
ninja-build \
41
44
libglvnd-dev \
42
45
libsecret-1-dev \
46
+ linux-libc-dev \
43
47
pkg-config
44
48
45
49
- name : Install Windows dependencies
46
50
if : startsWith( matrix.os, 'windows' )
51
+ shell : powershell
47
52
run : choco install -y zip ninja
48
53
49
54
- name : Install macOS dependencies
50
55
if : startsWith( matrix.os, 'macos' )
51
56
run : brew install zip ninja
52
57
53
- - name : Export GitHub Actions cache environment variables
54
- uses : actions/github-script@v7
58
+ - name : Retrieve vcpkg commit hash
59
+ id : cache_info
60
+ shell : bash
61
+ run : |
62
+ mkdir -p .cache
63
+ echo "vcpkg_commit=$(git -C ./extern/vcpkg rev-parse HEAD)" >> $GITHUB_OUTPUT
64
+ echo "vcpkg_cache_dir=$(realpath .cache)" >> $GITHUB_OUTPUT
65
+ echo "timestamp=$(date +%s)" >> $GITHUB_OUTPUT
66
+
67
+ - uses : actions/cache@v4
55
68
with :
56
- script : |
57
- core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
58
- core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
69
+ path : |
70
+ .cache/
71
+ extern/vcpkg/installed
72
+ extern/vcpkg/downloads
73
+ extern/vcpkg/scripts/buildsystems/vcpkg.cmake
74
+ key : vcpkg-${{ matrix.os }}-${{ steps.cache_info.outputs.vcpkg_commit }}-${{ steps.cache_info.outputs.timestamp }}
75
+ restore-keys : |
76
+ vcpkg-${{ matrix.os }}-
77
+ vcpkg-${{ matrix.os }}-${{ steps.cache_info.outputs.vcpkg_commit }}-
59
78
60
79
- name : Build
61
80
id : build
62
81
env :
63
- VCPKG_BINARY_SOURCES : " clear;x-gha,readwrite"
64
82
MSYSTEM : " "
83
+ VCPKG_DEFAULT_BINARY_CACHE : ${{ steps.cache_info.outputs.vcpkg_cache_dir }}
84
+ VCPKG_BUILD_TYPE : Release
65
85
run : make build
66
86
67
87
- name : Report build failure
0 commit comments