Skip to content

Commit

Permalink
CI: Switch to using libhsplasma from vcpkg rather than building it ou…
Browse files Browse the repository at this point in the history
…rselves.
  • Loading branch information
zrax committed Jun 12, 2023
1 parent f37a1f7 commit 8b4ea55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/windows-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
id: cache-vcpkg
uses: actions/cache@v3
with:
path: C:\vcpkg\installed
path: ${{ github.workspace }}\vcpkg_installed
key: |
vcpkg-triplet=${{ matrix.cfg.triplet }} vcpkg-response=${{ hashFiles('vcpkg.txt') }} vcpkg-rev=${{ steps.bootstrap-vcpkg.outputs.vcpkg-rev }}
vcpkg-triplet=${{ matrix.cfg.triplet }} vcpkg-response=${{ hashFiles('vcpkg.json') }} vcpkg-rev=${{ steps.bootstrap-vcpkg.outputs.vcpkg-rev }}
restore-keys: |
vcpkg-triplet=${{ matrix.cfg.triplet }} vcpkg-response=${{ hashFiles('vcpkg.txt') }}
vcpkg-triplet=${{ matrix.cfg.triplet }} vcpkg-response=${{ hashFiles('vcpkg.json') }}
vcpkg-triplet=${{ matrix.cfg.triplet }}
- name: Upgrade Dependencies
Expand Down Expand Up @@ -115,25 +115,6 @@ jobs:
cmake --build . --config Release -j 2
cmake --build . --config Release --target INSTALL
- name: Checkout HSPlasma
uses: actions/checkout@v3
with:
repository: H-uru/libhsplasma
path: libhsplasma

- name: Build libHSPlasma
run: |
cd libhsplasma
mkdir build && cd build
cmake `
-G "${{ matrix.cfg.generator }}" -A ${{ matrix.cfg.cmake-arch }} `
-DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake `
-DVCPKG_TARGET_TRIPLET=${{ matrix.cfg.triplet }} `
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}\install `
-DENABLE_PYTHON=OFF -DENABLE_TOOLS=OFF -DENABLE_NET=OFF -DENABLE_PHYSX=OFF ..
cmake --build . --config Release -j 2
cmake --build . --config Release --target INSTALL
- name: Build PlasmaShop
run: |
mkdir build && cd build
Expand Down
5 changes: 5 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"version-string": "3.0",
"description": "Swiss army knife for Plasma file hacking",
"dependencies": [
{
"name": "libhsplasma",
"default-features": false,
"features": []
},
"libjpeg-turbo",
"libpng",
"string-theory",
Expand Down

0 comments on commit 8b4ea55

Please sign in to comment.