Skip to content

Commit

Permalink
Try mixing static windows build with Conda
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Sep 25, 2023
1 parent fdbb8f4 commit 98e8adc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/static_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,21 @@ jobs:
# remove libsolv overlay-ports once https://github.com/microsoft/vcpkg/pull/31275 is released
run: |
vcpkg install --overlay-ports=.\ports\libsolv --triplet x64-windows-static-md
- uses: mamba-org/setup-micromamba@v1
with:
environment-name: mambabuild
init-shell: bash cmd.exe
create-args: nlohmann_json
- uses: hendrikmuhs/ccache-action@main
with:
variant: sccache
key: sccache-${{ github.job }}-win-64
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: build micromamba
shell: cmd
shell: cmd /C call {0}
run: |
set CMAKE_PREFIX_PATH=.\vcpkg_installed\x64-windows-static-md
set CMAKE_PREFIX_PATH=.\vcpkg_installed\x64-windows-static-md;%CONDA_PREFIX%\Library
cmake -S . ^
-B build ^
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache ^
Expand Down
1 change: 0 additions & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"name": "libsolv"
},
"zstd",
"nlohmann-json",
"tl-expected",
"curl",
"yaml-cpp",
Expand Down

0 comments on commit 98e8adc

Please sign in to comment.