mirror of https://github.com/mamba-org/mamba.git
use local meta.yaml for static builds (#2214)
This commit is contained in:
parent
3f716332f9
commit
e9695a45cc
|
@ -37,17 +37,7 @@ jobs:
|
|||
- name: Patch micromamba-feedstock
|
||||
if: ${{ matrix.platform == 'linux' }}
|
||||
run: |
|
||||
sed -i -E 's/(url|git_url):.*$/git_url: ..\/..\//' micromamba-feedstock/recipe/meta.yaml
|
||||
sed -i '/sha256:/d' micromamba-feedstock/recipe/meta.yaml
|
||||
- name: Patch micromamba-feedstock
|
||||
if: ${{ matrix.platform == 'osx' }}
|
||||
run: |
|
||||
sed -i '' -E 's/(url|git_url):.*/git_url: ..\/..\//' micromamba-feedstock/recipe/meta.yaml
|
||||
sed -i '' '/sha256:/d' micromamba-feedstock/recipe/meta.yaml
|
||||
sed -i '' '/sha256:/d' micromamba-feedstock/recipe/meta.yaml
|
||||
sed -i '' 's/libcurl >=7.86/libcurl 7.86/g' micromamba-feedstock/recipe/meta.yaml
|
||||
sed -i '' 's/libcurl-static >=7.86/libcurl-static 7.86/g' micromamba-feedstock/recipe/meta.yaml
|
||||
|
||||
cp ./micromamba/recipe/* micromamba-feedstock/recipe/
|
||||
- uses: mamba-org/provision-with-micromamba@main
|
||||
with:
|
||||
channels: conda-forge
|
||||
|
@ -56,7 +46,9 @@ jobs:
|
|||
extra-specs: boa
|
||||
- name: Build conda package
|
||||
shell: bash -l {0}
|
||||
run: conda mambabuild -m micromamba-feedstock/.ci_support/${{ matrix.platform }}_${{ matrix.arch }}_.yaml micromamba-feedstock/recipe ${{ matrix.arch != '64' && '--no-test' || '' }}
|
||||
run: |
|
||||
conda mambabuild -m micromamba-feedstock/.ci_support/${{ matrix.platform }}_${{ matrix.arch }}_.yaml \
|
||||
micromamba-feedstock/recipe ${{ matrix.arch != '64' && '--no-test' || '' }}
|
||||
- name: Unpack micromamba package
|
||||
shell: bash -l {0}
|
||||
run: |
|
||||
|
|
|
@ -18,7 +18,7 @@ repos:
|
|||
- id: fix-encoding-pragma
|
||||
args: [--remove]
|
||||
- id: check-yaml
|
||||
exclude: tests
|
||||
exclude: ^.+(/tests/|/recipe/).+$
|
||||
- id: check-toml
|
||||
- id: check-json
|
||||
- id: check-merge-conflict
|
||||
|
|
|
@ -0,0 +1,107 @@
|
|||
{% set version = "1.1.0" %}
|
||||
{% set build_num = 1 %}
|
||||
|
||||
package:
|
||||
name: micromamba
|
||||
version: {{ version }}
|
||||
|
||||
source:
|
||||
- git_url: ../../
|
||||
patches:
|
||||
- libmamba.patch
|
||||
|
||||
build:
|
||||
number: {{ build_num }}
|
||||
string: {{ build_num }}
|
||||
ignore_run_exports_from:
|
||||
- libcurl # [unix]
|
||||
- libarchive-minimal-static # [unix]
|
||||
- reproc-cpp # [unix]
|
||||
- openssl # [unix]
|
||||
- spdlog 1.10 *_0
|
||||
- fmt
|
||||
- {{ compiler('c') }} # [linux]
|
||||
- {{ compiler('cxx') }} # [linux]
|
||||
- python # [win]
|
||||
|
||||
requirements:
|
||||
build:
|
||||
- {{ compiler('c') }}
|
||||
- {{ compiler('cxx') }}
|
||||
- cmake # [unix]
|
||||
- ninja
|
||||
- vcpkg # [win]
|
||||
- python # [win]
|
||||
- curl >=7.87 # [win]
|
||||
- zlib # [win]
|
||||
host:
|
||||
- cli11 >=2.2,<3
|
||||
- cpp-expected
|
||||
- nlohmann_json
|
||||
- spdlog 1.10 *_0
|
||||
- fmt
|
||||
- yaml-cpp-static # [unix]
|
||||
- libcurl >=7.87 # [linux]
|
||||
- libcurl-static >=7.87 # [linux]
|
||||
- libcurl 7.86 # [osx]
|
||||
- libcurl-static 7.86 # [osx]
|
||||
- xz-static # [unix]
|
||||
- libssh2-static # [unix]
|
||||
- libarchive-minimal-static # [unix]
|
||||
- krb5-static # [unix]
|
||||
- libsolv-static # [unix]
|
||||
- openssl {{ openssl }} # [unix]
|
||||
- libopenssl-static {{ openssl }} # [unix]
|
||||
- zstd-static # [unix]
|
||||
- libnghttp2-static # [unix]
|
||||
- lz4-c-static # [unix]
|
||||
- reproc-static # [unix]
|
||||
- reproc-cpp # [unix]
|
||||
- reproc-cpp-static # [unix]
|
||||
- winreg # [win]
|
||||
|
||||
test:
|
||||
commands:
|
||||
- test -f $PREFIX/bin/micromamba # [unix]
|
||||
- micromamba --help
|
||||
- export TMPDIR="${TMPDIR:-/tmp}" # [unix and not (ppc64le or aarch64)]
|
||||
- if [ ! -d "${TMPDIR}" ]; then mkdir -p "${TMPDIR}"; fi # [unix and not (ppc64le or aarch64)]
|
||||
- stat $TMPDIR # [unix and not (ppc64le or aarch64)]
|
||||
- export MAMBA_ROOT_PREFIX=$TMPDIR/mamba # [unix and not (ppc64le or aarch64)]
|
||||
- micromamba create -p $TMPDIR/testenv --override-channels -c conda-forge --yes python=3.9 # [unix and not (ppc64le or aarch64)]
|
||||
- $TMPDIR/testenv/bin/python --version # [unix and not (ppc64le or aarch64)]
|
||||
- $TMPDIR/testenv/bin/python -c 'import ssl' # [unix and not (ppc64le or aarch64)]
|
||||
|
||||
about:
|
||||
home: https://github.com/mamba-org/mamba
|
||||
license_file:
|
||||
- LICENSE
|
||||
- CURL_LICENSE.txt
|
||||
- LIBARCHIVE_LICENSE.txt
|
||||
- KRB5_LICENSE.txt
|
||||
- LIBSOLV_LICENSE.txt
|
||||
- LIBOPENSSL_LICENSE.txt
|
||||
- LIBOPENSSL_3_LICENSE.txt
|
||||
- CLI11_LICENSE.txt
|
||||
- NLOHMANN_JSON_LICENSE.txt
|
||||
- ZSTD_LICENSE.txt
|
||||
- LIBLZ4_LICENSE.txt
|
||||
- C_ARES_LICENSE.txt
|
||||
- LIBEV_LICENSE.txt
|
||||
- LIBNGHTTP2_LICENSE.txt
|
||||
- REPROC_LICENSE.txt
|
||||
- SPDLOG_LICENSE.txt
|
||||
- FMT_LICENSE.txt
|
||||
- TL_EXPECTED_LICENSE.txt
|
||||
license: BSD-3-Clause AND MIT AND OpenSSL
|
||||
license_family: BSD
|
||||
summary: Micromamba is a tiny version of mamba, the fast conda package installer.
|
||||
dev_url: https://github.com/mamba-org/mamba
|
||||
|
||||
extra:
|
||||
recipe-maintainers:
|
||||
- wolfv
|
||||
- SylvainCorlay
|
||||
- JohanMabille
|
||||
- mariusvniekerk
|
||||
- adriendelsalle
|
Loading…
Reference in New Issue