Skip to content

Commit 8cf0aa7

Browse files
committed
test
1 parent cde4cb8 commit 8cf0aa7

File tree

2 files changed

+28
-82
lines changed

2 files changed

+28
-82
lines changed

.github/workflows/pr_push.yml

Lines changed: 1 addition & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -17,88 +17,7 @@ permissions:
1717
packages: read
1818

1919
jobs:
20-
CodeChecks:
21-
uses: ./.github/workflows/reusable_checks.yml
2220
FastBuild:
2321
name: Fast builds
24-
needs: [CodeChecks]
2522
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
36-
L0:
37-
needs: [Build]
38-
uses: ./.github/workflows/reusable_gpu.yml
39-
with:
40-
provider: "LEVEL_ZERO"
41-
runner: "L0"
42-
shared_lib: "['ON']"
43-
L0-BMG:
44-
needs: [Build]
45-
uses: ./.github/workflows/reusable_gpu.yml
46-
with:
47-
provider: "LEVEL_ZERO"
48-
runner: "L0-BMG"
49-
shared_lib: "['ON']"
50-
os: "['Ubuntu']"
51-
CUDA:
52-
needs: [Build]
53-
uses: ./.github/workflows/reusable_gpu.yml
54-
with:
55-
provider: "CUDA"
56-
runner: "CUDA"
57-
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}}
23+

.github/workflows/reusable_fast.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,28 @@ jobs:
108108
with:
109109
fetch-depth: 0
110110

111+
- name: Restore vcpkg cache
112+
uses: actions/cache/restore@v4
113+
id: cache-restore
114+
with:
115+
path: ${{env.BUILD_DIR}}/cache.zip
116+
key: reusable-fast-windows
117+
118+
- name: Unpack vcpkg cache
119+
if: steps.cache-restore.outcome.cache-hit == 'true'
120+
run: Expand-Archive -Path ${{github.workspace}}/cache.zip -DestinationPath ${{env.BUILD_DIR}}/vcpkg -Force
121+
shell: pwsh
122+
111123
- name: Initialize vcpkg
124+
if: steps.cache-restore.outcome.cache-hit != 'true'
112125
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
113126
with:
114127
vcpkgGitCommitId: ea2a964f9303270322cf3f2d51c265ba146c422d # 1.04.2025
115128
vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg
116129
vcpkgJsonGlob: '**/vcpkg.json'
117130

118131
- name: Install dependencies
132+
if: steps.cache-restore.outcome.cache-hit != 'true'
119133
run: vcpkg install --triplet x64-windows
120134
shell: pwsh # Specifies PowerShell as the shell for running the script.
121135

@@ -164,3 +178,16 @@ jobs:
164178
run: |
165179
get-command ${{github.workspace}}/build/bin/Release/umf.dll | format-list
166180
get-command ${{github.workspace}}/build/src/proxy_lib/Release/umf_proxy.dll | format-list
181+
182+
- name: Prepare vcpkg cache
183+
if: steps.cache-restore.outcome.cache-hit != 'true'
184+
run: |
185+
Compress-Archive -Path ${{env.BUILD_DIR}}/vcpkg -DestinationPath ${{github.workspace}}/cache.zip -Force -CompressionLevel Fastest
186+
# Get-ChildItem -Path ${{github.workspace}}
187+
188+
- name: Cache save
189+
if: steps.cache-restore.outcome.cache-hit != 'true'
190+
uses: actions/cache/save@v4
191+
with:
192+
path: ${{github.workspace}}/cache.zip
193+
key: reusable-fast-windows

0 commit comments

Comments
 (0)