Skip to content

Commit

Permalink
ci: point to libarchive on windows
Browse files Browse the repository at this point in the history
this is a workaround needed due to a bug in conda-build on windows.
libarchive is not found when conda-build is run from a virtual env.

xref: conda/conda#12563 (comment)
  • Loading branch information
k-dominik committed Feb 6, 2024
1 parent 3a2fae8 commit 6898e2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,21 @@ jobs:
auto-activate-base: true
activate-environment: ""
- name: install common dependencies
run: conda install -n base -c conda-forge conda-build mamba boa -y
run: conda install -n base -c conda-forge -c nodefaults conda-build mamba boa -y
- name: linux conda build test
if: matrix.os == 'ubuntu-latest'
shell: bash -l {0}
run: conda mambabuild -c conda-forge conda-recipe
run: conda build -c conda-forge conda-recipe
- name: osx test
if: matrix.os == 'macos-latest'
shell: bash -l {0}
run: conda mambabuild -c conda-forge conda-recipe
run: conda build -c conda-forge conda-recipe
- name: windows conda-build
if: matrix.os == 'windows-latest'
shell: cmd /C CALL {0}
run: conda mambabuild -c conda-forge conda-recipe
run: conda build -c conda-forge conda-recipe
# HACK: due to a bug in conda-build need to point to
# libarchive explicitly.
# https://github.com/conda/conda/issues/12563#issuecomment-1494264704
env:
LIBARCHIVE: C:\Miniconda\Library\bin\archive.dll
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
packages=find_packages("./src"),
include_package_data=True,
install_requires=[
"argcomplete",
"anaconda-client",
"argcomplete",
"boa",
"conda-build>=3.18.10",
"conda-verify",
"ruamel.yaml>=0.15.2",
"mamba",
"boa",
"ruamel.yaml>=0.15.2",
],
entry_points={
"console_scripts": ["publish-conda-stack = publish_conda_stack.__main__:main"]
Expand Down

0 comments on commit 6898e2b

Please sign in to comment.