.github/workflows/windows.yml: setup messagepack library #5
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
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: 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 | |
- name: Setup ROCm CMake modules | |
run: | | |
cd depend | |
git clone https://github.com/ROCm/rocm-cmake --depth 1 | |
cd rocm-cmake | |
cmake -S . -B build | |
cmake --install build --prefix ../install | |
- name: Setup Half library | |
run: | | |
cd depend | |
git clone https://github.com/ROCm/half --depth 1 | |
cd half | |
cmake -S . -B build -D CMAKE_PREFIX_PATH="%cd%/../install" | |
cmake --install build --prefix ../install | |
- name: Setup json library | |
run: | | |
cd depend | |
git clone https://github.com/nlohmann/json | |
cd json | |
git checkout v3.8.0 | |
cmake -S . -B build -D BUILD_TESTING=OFF -Wno-dev | |
cmake --install build --prefix ../install | |
- name: Setup SQLite3 library | |
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 --prefix "%cd%/../install" | |
xcopy include ../install /s /f /y | |