Skip to content

Commit

Permalink
.github/workflows/windows.yml: setup messagepack library
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframRhodium committed Aug 20, 2024
1 parent ed0cdc8 commit dccd768
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,6 @@ jobs:
- 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
- name: Create depend folder
run: mkdir depend

Expand Down Expand Up @@ -67,5 +50,30 @@ jobs:
cmake --install build --prefix ../install
- name: Setup SQLite3 library
run: vcpkg install sqlite3[core]:x64-windows --x-install-root="%cd%/../install"
run: vcpkg install sqlite3[core]:x64-windows

- name: Setup MessagePack library
run: |
cd depend
git clone https://github.com/msgpack/msgpack-c
cd msgpack-c
git checkout cpp-3.3.0
cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release -D MSGPACK_BUILD_TESTS=OFF -D MSGPACK_BUILD_EXAMPLES=OFF -Wno-dev
cmake --build build --verbose
cmake --install build
xcopy include\ ..\install /s /f /y
- 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

0 comments on commit dccd768

Please sign in to comment.