-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds meta data and build scripts for conda packaging - Adds github action CI for conda packaging - Adds GPL license file - Adds VERSION file - Adds version info that gives git-hash and date of current build
- Loading branch information
1 parent
b3672b8
commit fb4ebd8
Showing
28 changed files
with
1,091 additions
and
61 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
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: Build larch on linux and publish to Anaconda Cloud | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
conda-publish: | ||
runs-on: ubuntu-latest | ||
environment: conda-publish | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Prepare build environment | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install build-essential zlib1g-dev python3-pip python3-pytest git git-lfs | ||
- name: Install conda | ||
run: | | ||
curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > Miniconda3-latest-Linux-x86_64.sh | ||
bash Miniconda3-latest-Linux-x86_64.sh -b -p ~/miniconda | ||
~/miniconda/bin/conda update -n base -c defaults conda | ||
- name: Create conda env | ||
run: | | ||
source ~/miniconda/etc/profile.d/conda.sh | ||
conda config --prepend channels conda-forge | ||
conda config --prepend channels bioconda | ||
conda config --show channels | ||
conda env create -f environment-dev.yml | ||
- name: Build conda package and upload to Anaconda Cloud | ||
env: | ||
ANACONDA_USER: ${{ vars.ANACONDA_USER }} | ||
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | ||
ANACONDA_FLAGS: ${{ vars.ANACONDA_FLAGS }} | ||
INCLUDE_TESTS: ${{ vars.INCLUDE_TESTS }} | ||
run: | | ||
source ~/miniconda/etc/profile.d/conda.sh | ||
conda activate larch-dev | ||
export LARCH_VERSION=$(cat ./VERSION) | ||
export INCLUDE_TESTS=${INCLUDE_TESTS} | ||
conda build . --user ${ANACONDA_USER} --token ${ANACONDA_TOKEN} ${ANACONDA_FLAGS} |
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 |
---|---|---|
|
@@ -7,3 +7,5 @@ tags | |
.kak* | ||
cscope.* | ||
*.code-workspace | ||
|
||
tools/version.hpp |
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.