aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build_caldp.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build_caldp.yaml')
-rw-r--r--.github/workflows/build_caldp.yaml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/build_caldp.yaml b/.github/workflows/build_caldp.yaml
new file mode 100644
index 0000000..160175b
--- /dev/null
+++ b/.github/workflows/build_caldp.yaml
@@ -0,0 +1,52 @@
+name: build CALDP
+
+on:
+ push:
+ branches:
+ - master
+ paths:
+ - caldp/**
+ pull_request:
+ paths:
+ - caldp/**
+ workflow_dispatch:
+ inputs:
+ release:
+ description: CALDP release (can also be `latest`, `stable`)
+ type: string
+ required: false
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.release }}
+ cancel-in-progress: true
+
+jobs:
+ release:
+ name: name of release
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - id: release
+ run: echo "release=$(basename $(readlink -f caldp/${{ inputs.release || 'latest' }}))" >> $GITHUB_OUTPUT
+ - run: echo "release=${{ steps.release.outputs.release }}"
+ outputs:
+ release: ${{ steps.release.outputs.release }}
+ build:
+ needs: [ release ]
+ name: build CALDP `${{ needs.release.outputs.release }}` (${{ matrix.runs-on }})
+ runs-on: ${{ matrix.runs-on }}
+ strategy:
+ matrix:
+ runs-on: [ ubuntu-latest, macos-latest ]
+ defaults:
+ run:
+ shell: micromamba-shell {0}
+ steps:
+ - uses: actions/checkout@v4
+ - uses: mamba-org/setup-micromamba@v1
+ with:
+ environment-name: caldp-${{ runner.os }}
+ environment-file: caldp/${{ needs.release.outputs.release }}/latest-${{ runner.os == 'Linux' && 'linux' || 'macos' }}.yml
+ init-shell: none
+ generate-run-shell: true
+ - run: pip list