Skip to content

Commit

Permalink
Splitting CI Deployment Runners (#264)
Browse files Browse the repository at this point in the history
* Splitting real/complex build runners to get around GH time limit

* Adding label env var

* Minor edit
  • Loading branch information
timryanb authored Oct 30, 2023
1 parent 4b59e62 commit cc7c667
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/deploy_conda_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,28 @@ jobs:
include:
# real versions
- OS: ubuntu-latest
BUILD_DIR: linux-64
TARGET: linux-64
SCALAR: real

- OS: macos-latest
TARGET: osx-64
SCALAR: real

# complex versions
- OS: ubuntu-latest
TARGET: linux-64
SCALAR: complex

- OS: macos-latest
BUILD_DIR: osx-64
TARGET: osx-64
SCALAR: complex

name: TACS Conda Package Deployment (${{ matrix.OS }})
name: TACS Conda Package Deployment (${{ matrix.TARGET }}, ${{ matrix.SCALAR }})

# Recommended if you intend to make multiple deployments in quick succession.
# This will kill any currently running CI from previous commits to the same branch
concurrency:
group: ci-${{ github.ref }}-${{ matrix.OS }}
group: ci-${{ github.ref }}-${{ matrix.TARGET }}-${{ matrix.SCALAR }}
cancel-in-progress: true

steps:
Expand Down Expand Up @@ -62,9 +72,14 @@ jobs:
export TACS_DIR=${GITHUB_WORKSPACE};
echo "TACS_DIR=${GITHUB_WORKSPACE}" >> $GITHUB_ENV;
export ANACONDA_API_TOKEN=${{ secrets.ANACONDA_TOKEN }};
export BUILD_ARGS="--no-include-recipe ${{ matrix.EXTRA_ARGS }}";
if [[ ${{ matrix.SCALAR }} == "complex" ]]; then
export LABEL="complex"
elif [[ ${{ matrix.SCALAR }} == "real" ]]; then
export LABEL="main"
fi
conda install anaconda-client conda-build conda-verify -q -y;
conda config --set anaconda_upload no;
cd ${TACS_DIR}/conda;
conda build --no-include-recipe -c conda-forge -c smdogroup --output-folder . .;
anaconda upload --label main ${{ matrix.BUILD_DIR }}/*real*.tar.bz2 --force;
anaconda upload --label complex ${{ matrix.BUILD_DIR }}/*complex*.tar.bz2 --force;
conda build --variants "{scalar: ${{ matrix.SCALAR }}}" -c conda-forge -c smdogroup $BUILD_ARGS --output-folder . .;
anaconda upload --label $LABEL ${{ matrix.TARGET }}/*.tar.bz2 --force;

0 comments on commit cc7c667

Please sign in to comment.