forked from ROCm/AMDMIGraphX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows/windows.yml: cache hip sdk
- Loading branch information
1 parent
196bc9f
commit 86e900b
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build (Windows) | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-windows: | ||
runs-on: windows-2022 | ||
|
||
defaults: | ||
run: | ||
shell: cmd | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup MSVC | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- name: Setup Ninja | ||
run: pip install ninja | ||
|
||
- name: Cache HIP SDK | ||
id: cache-hip | ||
uses: actions/cache@v4 | ||
with: | ||
path: C:\Program Files\AMD\ROCM | ||
key: ${{ runner.os }}-rocm-6.1.2 | ||
|
||
- name: Setup HIP | ||
if: steps.cache-hip.outputs.cache-hit != 'true' | ||
shell: pwsh | ||
run: | | ||
curl -s -o hip_installer.exe -L https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-24.Q3-WinSvr2022-For-HIP.exe | ||
Start-Process hip_installer.exe -ArgumentList '-install' -NoNewWindow -Wait | ||