Skip to content

Commit 80b26a0

Browse files
committed
cache test
1 parent cde4cb8 commit 80b26a0

File tree

2 files changed

+17
-68
lines changed

2 files changed

+17
-68
lines changed

.github/workflows/pr_push.yml

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -17,88 +17,22 @@ permissions:
1717
packages: read
1818

1919
jobs:
20-
CodeChecks:
21-
uses: ./.github/workflows/reusable_checks.yml
22-
FastBuild:
23-
name: Fast builds
24-
needs: [CodeChecks]
25-
uses: ./.github/workflows/reusable_fast.yml
26-
Build:
27-
name: Basic builds
28-
needs: [FastBuild]
29-
uses: ./.github/workflows/reusable_basic.yml
30-
DevDax:
31-
needs: [FastBuild]
32-
uses: ./.github/workflows/reusable_dax.yml
33-
MultiNuma:
34-
needs: [FastBuild]
35-
uses: ./.github/workflows/reusable_multi_numa.yml
3620
L0:
37-
needs: [Build]
3821
uses: ./.github/workflows/reusable_gpu.yml
3922
with:
4023
provider: "LEVEL_ZERO"
4124
runner: "L0"
4225
shared_lib: "['ON']"
4326
L0-BMG:
44-
needs: [Build]
4527
uses: ./.github/workflows/reusable_gpu.yml
4628
with:
4729
provider: "LEVEL_ZERO"
4830
runner: "L0-BMG"
4931
shared_lib: "['ON']"
5032
os: "['Ubuntu']"
5133
CUDA:
52-
needs: [Build]
5334
uses: ./.github/workflows/reusable_gpu.yml
5435
with:
5536
provider: "CUDA"
5637
runner: "CUDA"
5738
shared_lib: "['ON']"
58-
Sanitizers:
59-
needs: [FastBuild]
60-
uses: ./.github/workflows/reusable_sanitizers.yml
61-
QEMU:
62-
needs: [FastBuild]
63-
uses: ./.github/workflows/reusable_qemu.yml
64-
with:
65-
short_run: true
66-
ProxyLib:
67-
needs: [Build]
68-
uses: ./.github/workflows/reusable_proxy_lib.yml
69-
Valgrind:
70-
needs: [Build]
71-
uses: ./.github/workflows/reusable_valgrind.yml
72-
Coverage:
73-
# total coverage (on upstream only)
74-
if: github.repository == 'oneapi-src/unified-memory-framework'
75-
needs: [Build, DevDax, L0, CUDA, MultiNuma, QEMU, ProxyLib]
76-
uses: ./.github/workflows/reusable_coverage.yml
77-
secrets: inherit
78-
with:
79-
trigger: "${{github.event_name}}"
80-
Coverage_partial:
81-
# partial coverage (on forks)
82-
if: github.repository != 'oneapi-src/unified-memory-framework'
83-
needs: [Build, QEMU, ProxyLib]
84-
uses: ./.github/workflows/reusable_coverage.yml
85-
CodeQL:
86-
needs: [Build]
87-
permissions:
88-
contents: read
89-
security-events: write
90-
uses: ./.github/workflows/reusable_codeql.yml
91-
Trivy:
92-
needs: [Build]
93-
permissions:
94-
contents: read
95-
security-events: write
96-
uses: ./.github/workflows/reusable_trivy.yml
97-
Compatibility:
98-
needs: [Build]
99-
uses: ./.github/workflows/reusable_compatibility.yml
100-
strategy:
101-
matrix:
102-
tag: ["v0.12.0-dev3"]
103-
with:
104-
tag: ${{matrix.tag}}

.github/workflows/reusable_gpu.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,25 @@ jobs:
7575
- name: Get information about platform
7676
if: matrix.os == 'Ubuntu'
7777
run: .github/scripts/get_system_info.sh
78+
79+
- name: Cache restore
80+
if: matrix.os == 'Windows'
81+
uses: actions/cache/restore@v4
82+
id: cache-restore
83+
with:
84+
path: ${{env.BUILD_DIR}}/vcpkg
85+
key: reusable-gpu-${{matrix.os}}-${{hashFiles('**/lockfiles')}}
7886

7987
- name: "[Win] Initialize vcpkg"
80-
if: matrix.os == 'Windows'
88+
if: steps.cache-restore.outcome.cache-hit != 'true' && matrix.os == 'Windows'
8189
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
8290
with:
8391
vcpkgGitCommitId: ea2a964f9303270322cf3f2d51c265ba146c422d # 1.04.2025
8492
vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg
8593
vcpkgJsonGlob: '**/vcpkg.json'
8694

8795
- name: "[Win] Install dependencies"
88-
if: matrix.os == 'Windows'
96+
if: steps.cache-restore.outcome.cache-hit != 'true' && matrix.os == 'Windows'
8997
run: vcpkg install --triplet x64-windows
9098

9199
# note: disable all providers except the one being tested
@@ -140,6 +148,13 @@ jobs:
140148
mkdir -p ${{env.COVERAGE_DIR}}
141149
mv ./$COVERAGE_FILE_NAME ${{env.COVERAGE_DIR}}
142150
151+
- name: Cache save
152+
if: steps.cache-restore.outcome.cache-hit != 'true' && matrix.os == 'Windows'
153+
uses: actions/cache/save@v4
154+
with:
155+
path: ${{env.BUILD_DIR}}/vcpkg
156+
key: reusable-gpu-${{matrix.os}}-${{hashFiles('**/lockfiles')}}
157+
143158
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
144159
if: ${{ matrix.build_type == 'Debug' && matrix.os == 'Ubuntu' }}
145160
with:

0 commit comments

Comments
 (0)