-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from dkazanc/libraryci
Major Documentation update and some CI changes
- Loading branch information
Showing
54 changed files
with
2,658 additions
and
2,605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: libtomophantom_conda_upload | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-22.04 | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Checkout repository code | ||
uses: actions/checkout@v4 | ||
|
||
# setup Python 3.10 | ||
- name: Setup Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies with Conda | ||
run: | | ||
$CONDA/bin/conda install -c conda-forge conda-build anaconda-client | ||
$CONDA/bin/conda install --solver=classic conda-forge::conda-libmamba-solver conda-forge::libmamba conda-forge::libmambapy conda-forge::libarchive | ||
$CONDA/bin/conda install -c conda-forge cmake | ||
$CONDA/bin/conda update conda | ||
$CONDA/bin/conda update conda-build | ||
$CONDA/bin/conda list | ||
- name: Decrypt a secret | ||
run: ./.scripts/decrypt_secret.sh | ||
env: | ||
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }} | ||
|
||
- name: Upload the tested package to conda cloud | ||
run: | | ||
chmod +x ./.scripts/conda_upload_lib.sh | ||
./.scripts/conda_upload_lib.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
PKG_NAME=libtomophantom | ||
USER=httomo-team | ||
OS=linux-64 | ||
CONDA_TOKEN=$(cat $HOME/.secrets/my_secret.json) | ||
|
||
mkdir ~/conda-bld | ||
conda config --set anaconda_upload no | ||
export CONDA_BLD_PATH=~/conda-bld | ||
|
||
export CIL_VERSION=3.0.1 | ||
$CONDA/bin/conda build conda-recipe_library . -c httomo | ||
|
||
# upload packages to conda | ||
find $CONDA_BLD_PATH/$OS -name '*.tar.bz2' | while read -r file | ||
do | ||
echo $file | ||
$CONDA/bin/anaconda -v --show-traceback --token $CONDA_TOKEN upload $file --force | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.