-
Notifications
You must be signed in to change notification settings - Fork 28
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 #43 from fredboudon/master
Upgrade to new namespace convention. Add py 3.11 and py3.12
- Loading branch information
Showing
128 changed files
with
43,335 additions
and
46,815 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 |
---|---|---|
@@ -1,105 +1,21 @@ | ||
name: Building Package using Conda | ||
name: Building Package | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: | ||
- '**' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: [ master ] | ||
branches: | ||
- '**' | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
#max-parallel: 5 | ||
matrix: | ||
os: [ macos-latest, ubuntu-latest] | ||
env: | ||
- CONDA_PY: "37" | ||
CONDA_NPY: "111" | ||
- CONDA_PY: "38" | ||
CONDA_NPY: "116" | ||
- CONDA_PY: "39" | ||
CONDA_NPY: "119" | ||
|
||
environment: anaconda_build | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Add conda to system path | ||
run: | | ||
# Add conda to system path | ||
# $CONDA is an environment variable pointing to the root of the miniconda directory | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Setup conda | ||
run: | | ||
# Setup conda | ||
sudo conda config --add channels conda-forge | ||
sudo conda config --add channels openalea3 | ||
sudo conda config --set always_yes yes | ||
sudo conda config --set remote_read_timeout_secs 600 | ||
sudo conda config --set auto_update_conda False | ||
sudo conda install conda-build anaconda-client | ||
- name: Build | ||
env: | ||
CONDA_PY: ${{ matrix.env.CONDA_PY }} | ||
CONDA_NPY: ${{ matrix.env.CONDA_NPY }} | ||
run: | | ||
# Build | ||
if [[ "$CONDA_PY" = "" ]]; then | ||
echo "CONDA_PY is not defined" | ||
exit -1 | ||
fi | ||
if [[ "$CONDA_NPY" = "" ]]; then | ||
echo "CONDA_NPY is not defined" | ||
exit -1 | ||
fi | ||
export PYTHON_VERSION=${CONDA_PY:0:1}.${CONDA_PY:1:1} | ||
export NUMPY_VERSION=${CONDA_NPY:0:1}.${CONDA_NPY:1:2} | ||
export BUILD_CMD="sudo conda build . --python=$PYTHON_VERSION" | ||
export BUILD_OUTPUT=`$BUILD_CMD --output` | ||
if [[ "$BUILD_OUTPUT" = "" ]]; then | ||
echo "PACKAGE NAME is not defined" | ||
exit -1 | ||
fi | ||
echo "BUILD_OUTPUT=$BUILD_OUTPUT" >> $GITHUB_ENV | ||
$BUILD_CMD | ||
- name: Login | ||
env: | ||
ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }} | ||
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }} | ||
run: | | ||
# Login | ||
if [[ "$ANACONDA_LOGIN" = "" ]]; then | ||
echo "ANACONDA_LOGIN is not defined" | ||
exit -1 | ||
fi | ||
SESSION_UID=$(uuidgen) | ||
anaconda login --username $ANACONDA_LOGIN --password $ANACONDA_PASSWORD --hostname $SESSION_UID | ||
- name: Deploy | ||
env: | ||
ANACONDA_OWNER: ${{ secrets.ANACONDA_OWNER }} | ||
BUILD_OUTPUT: ${{ env.BUILD_OUTPUT }} | ||
run: | | ||
# Deploy | ||
if [[ "$ANACONDA_OWNER" = "" ]]; then | ||
echo "ANACONDA_OWNER is not defined" | ||
exit -1 | ||
fi | ||
echo "PACKAGE NAME:" $BUILD_OUTPUT | ||
if [[ "$BUILD_OUTPUT" = "" ]]; then | ||
echo "PACKAGE NAME is not defined" | ||
exit -1 | ||
fi | ||
anaconda upload --skip-existing $BUILD_OUTPUT -u $ANACONDA_OWNER --no-progress | ||
uses: openalea/github-action-conda-build/.github/workflows/conda-package-build.yml@main | ||
with: | ||
conda-channels: openalea3, conda-forge | ||
secrets: | ||
anaconda_token: ${{ secrets.ANACONDA_TOKEN }} | ||
|
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
conda build . -c conda-forge -c fredboudon -c defaults --python=3.7 | ||
conda mambabuild . -c conda-forge -c fredboudon --python=3.10 --no-test |
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,17 @@ | ||
cxx_compiler: | ||
- gxx # [linux] | ||
- clangxx # [osx] | ||
- vs2019 # [win] | ||
compiler_version: | ||
- 11 # [osx] | ||
- 11.2.0 # [linux] | ||
cxx_compiler_version: | ||
- 11 # [osx] | ||
- 11.2.0 # [linux] | ||
MACOSX_DEPLOYMENT_TARGET: # [osx] | ||
- '10.12' # [osx] | ||
MACOSX_SDK_VERSION: # [osx and x86_64] | ||
- '10.12' # [osx and x86_64] | ||
pin_run_as_build: | ||
boost: x.x | ||
openalea.plantgl: x.x |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.