Skip to content

Commit 2f4ffeb

Browse files
committed
test
1 parent ae916a5 commit 2f4ffeb

File tree

2 files changed

+30
-82
lines changed

2 files changed

+30
-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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,31 @@ jobs:
108108
with:
109109
fetch-depth: 0
110110

111+
- name: Restore vcpkg cache
112+
uses: actions/cache@v4
113+
id: cache
114+
with:
115+
path: cache.zip
116+
key: reusable-fast-windows-latest-${{ hashFiles('vcpkg.json') }}
117+
restore-keys:
118+
reusable-fast-windows-latest-
119+
120+
- name: Unpack vcpkg cache
121+
if: steps.cache.outputs.cache-hit == 'true'
122+
run: |
123+
Expand-Archive -Path ${{github.workspace}}/cache.zip -DestinationPath ${{env.BUILD_DIR}} -Force
124+
shell: pwsh
125+
111126
- name: Initialize vcpkg
127+
if: steps.cache.outputs.cache-hit != 'true'
112128
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
113129
with:
114130
vcpkgGitCommitId: ea2a964f9303270322cf3f2d51c265ba146c422d # 1.04.2025
115131
vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg
116132
vcpkgJsonGlob: '**/vcpkg.json'
117133

118134
- name: Install dependencies
135+
if: steps.cache.outputs.cache-hit != 'true'
119136
run: vcpkg install --triplet x64-windows
120137
shell: pwsh # Specifies PowerShell as the shell for running the script.
121138

@@ -164,3 +181,15 @@ jobs:
164181
run: |
165182
get-command ${{github.workspace}}/build/bin/Release/umf.dll | format-list
166183
get-command ${{github.workspace}}/build/src/proxy_lib/Release/umf_proxy.dll | format-list
184+
185+
- name: Prepare vcpkg cache
186+
if: steps.cache.outputs.cache-hit != 'true'
187+
run: |
188+
Compress-Archive -Path ${{env.BUILD_DIR}}/vcpkg -DestinationPath ${{github.workspace}}/cache.zip -Force -CompressionLevel Fastest
189+
190+
- name: Cache save
191+
if: steps.cache.outputs.cache-hit != 'true'
192+
uses: actions/cache/save@v4
193+
with:
194+
path: ${{github.workspace}}/cache.zip
195+
key: reusable-fast-windows-latest-${{ hashFiles('vcpkg.json') }}

0 commit comments

Comments
 (0)