Skip to content

Commit

Permalink
.github/workflows/windows-migx.yml: cache hip sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Aug 21, 2024
1 parent ecb7a29 commit d44d156
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/windows-migx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build (Windows-MIGX)

on:
push:
paths:
- 'vsmigx/**'
- '.github/workflows/windows-migx.yml'
workflow_call:
inputs:
tag:
description: 'which tag to upload to'
required: true
type: string
secrets:
REPO_TOKEN:
required: true
workflow_dispatch:
inputs:
tag:
description: 'which tag to upload to'
default: ''

jobs:
build-windows:
runs-on: windows-2022

defaults:
run:
shell: cmd
working-directory: vsmigx

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1

- name: Cache HIP
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

0 comments on commit d44d156

Please sign in to comment.