Skip to content

Commit 6d8add0

Browse files
committed
attempt
1 parent 49f1b7e commit 6d8add0

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

.github/workflows/conda_release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ jobs:
1717
fetch-depth: 0
1818

1919
# 2) Install Miniconda and conda-build/anaconda-client
20-
- name: Install Miniconda and tools
21-
run: |
22-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
23-
bash miniconda.sh -b -p $HOME/miniconda
24-
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
25-
conda install -y conda-build anaconda-client
20+
- name: create environment with conda
21+
uses: conda-incubator/setup-miniconda@v3
22+
with:
23+
channels: conda-forge,defaults
24+
auto-activate-base: false
25+
auto-update-conda: true
26+
activate-environment: build-env
27+
environment-file: conda-recipe/build-env.yaml
2628

2729
# 3) Determine VERSION (strip the leading “v”) and compute SHA256
2830
- name: Set version and SHA256
@@ -76,7 +78,6 @@ jobs:
7678
# 5) Build the conda package
7779
- name: Build conda package
7880
run: |
79-
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
8081
cd conda-recipe
8182
conda-build . --output-folder ../conda-build-artifacts
8283
@@ -85,6 +86,5 @@ jobs:
8586
env:
8687
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
8788
run: |
88-
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
89-
PACKAGE=$(ls conda-build-artifacts/linux-64/aligncount-demo-${{ steps.vars.outputs.VERSION }}-*.tar.bz2)
89+
PACKAGE=$(ls conda-build-artifacts/linux-64/${GITHUB_REPOSITORY##*/}-${{ steps.vars.outputs.VERSION }}-*.tar.bz2)
9090
anaconda -t $ANACONDA_TOKEN upload $PACKAGE --user $ANACONDA_USER --label main --force

conda-recipe/build-env.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: build-env
2+
channels:
3+
- conda-forge
4+
- bioconda
5+
- defaults
6+
dependencies:
7+
- scikit-build
8+
- conda-build
9+
- anaconda-client

conda-recipe/meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ requirements:
3131
- scikit-build
3232
host:
3333
- python >=3.10
34+
- scikit-build
3435
run:
3536
- python >=3.10
37+
- scikit-build
3638

3739
about:
3840
home: <PLACEHOLDER>

0 commit comments

Comments
 (0)