-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (45 loc) · 1.33 KB
/
mrd_conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Conda
on:
push:
branches: [main]
tags: ["v*.*.*"]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build-conda-packages:
name: Test and Build Conda Packages
strategy:
matrix:
os: [ubuntu-latest, macos-13]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-activate-base: true
activate-environment: ""
miniforge-version: latest
- name: Set up just command runner
uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6
- name: Build C++ conda package
run: |
just build-cpp-conda-package
- name: Build Python conda package
if: startsWith(matrix.os, 'ubuntu')
run: |
just build-python-conda-package
- name: Publish conda packages
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: |
for p in $(find {cpp,python}/conda/build_pkg -name mrd*.tar.bz2)
do
./utils/conda/publish_package.sh -u ismrmrd -t "$ANACONDA_TOKEN" -p "$p"
done