Skip to content

Commit

Permalink
Merge pull request #309 from carterbox/container
Browse files Browse the repository at this point in the history
CI: Revert back to release trigger by changing download URL
  • Loading branch information
carterbox committed May 17, 2024
2 parents 8d28dd9 + e9523e3 commit 4028de2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/apptainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ name: Publish Apptainer

on:
workflow_dispatch:
workflow_run:
workflows:
- Upload a source archive and hash at every tagged release
types:
- completed
release:
types: [published]
push:
branches: [main]

permissions:
contents: read
Expand Down
12 changes: 6 additions & 6 deletions apptainer/tike.def
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ From: registry.fedoraproject.org/fedora-minimal:40-{{ target_arch }}
%arguments
target_arch="x86_64"
cuda_version="12.0"
tike_version="v0.25.6"
tike_version="main"

%post
curl -L -o conda-installer.sh https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-{{ target_arch }}.sh
bash conda-installer.sh -b -p "/opt/miniconda"
rm conda-installer.sh
curl -L -o tike-source https://github.com/AdvancedPhotonSource/tike/releases/download/{{ tike_version }}/tike-{{ tike_version }}.zip
/opt/miniconda/bin/conda install unzip --yes
/opt/miniconda/bin/unzip -d tike tike-source
rm tike-source
cd tike
curl -L -o tike-source.zip https://github.com/AdvancedPhotonSource/tike/archive/{{ tike_version }}.zip
/opt/miniconda/bin/unzip tike-source.zip
rm tike-source.zip
cd tike*
CONDA_OVERRIDE_CUDA={{ cuda_version }} /opt/miniconda/bin/conda install cuda-version={{ cuda_version }} --file requirements.txt -c conda-forge --yes
/opt/miniconda/bin/conda clean --all --yes
/opt/miniconda/bin/pip install . --no-deps --no-build-isolation
/opt/miniconda/bin/pip check
cd ..
rm tike -rf
rm tike* -rf

%runscript
/opt/miniconda/bin/python "$@"

0 comments on commit 4028de2

Please sign in to comment.