Skip to content

Commit

Permalink
.github/workflows/windows.yml: cache dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Aug 20, 2024
1 parent 1602fc5 commit 57b470d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,19 @@ jobs:
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1

- name: Cache dependencies
id: cache-depend
uses: actions/cache@v4
with:
path: D:/a/AMDMIGraphX/AMDMIGraphX/depend/install
key: ${{ runner.os }}-depend

- name: Create depend folder
if: steps.cache-depend.outputs.cache-hit != 'true'
run: mkdir depend

- name: Setup ROCm CMake modules
if: steps.cache-depend.outputs.cache-hit != 'true'
run: |
cd depend
git clone https://github.com/ROCm/rocm-cmake --depth 1
Expand All @@ -33,6 +42,7 @@ jobs:
cmake --install build --prefix ../install
- name: Setup Half library
if: steps.cache-depend.outputs.cache-hit != 'true'
run: |
cd depend
git clone https://github.com/ROCm/half --depth 1
Expand All @@ -41,6 +51,7 @@ jobs:
cmake --install build --prefix ../install
- name: Setup json library
if: steps.cache-depend.outputs.cache-hit != 'true'
run: |
cd depend
git clone https://github.com/nlohmann/json
Expand All @@ -54,6 +65,7 @@ jobs:
run: vcpkg install sqlite3[core]:x64-windows-static

- name: Setup MessagePack library
if: steps.cache-depend.outputs.cache-hit != 'true'
run: |
cd depend
git clone https://github.com/msgpack/msgpack-c
Expand All @@ -68,6 +80,7 @@ jobs:
xcopy include\ ..\install\include\ /s /f /y
- name: Setup Protobuf library
if: steps.cache-depend.outputs.cache-hit != 'true'
run: |
cd depend
git clone https://github.com/google/protobuf
Expand All @@ -79,6 +92,7 @@ jobs:
cmake --install build_rel --prefix ../install
- name: Setup rocMLIR library
if: steps.cache-depend.outputs.cache-hit != 'true'
run: |
cd depend
git clone https://github.com/ROCm/rocMLIR
Expand Down

0 comments on commit 57b470d

Please sign in to comment.