Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting CI Deployment Runners #264

Merged
merged 3 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading