@@ -3,7 +3,7 @@ name: Release Devel
33on :
44 workflow_dispatch :
55 push :
6- branches : [ devel ]
6+ branches : [devel]
77
88jobs :
99 build :
@@ -15,18 +15,21 @@ jobs:
1515 matrix :
1616 python-version : ["3.10", "3.11", "3.12"]
1717 platform :
18- - { name: "windows", os: "windows-latest", shell: "pwsh " }
18+ - { name: "windows", os: "windows-latest", shell: "bash -l {0} " }
1919 - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" }
2020 - { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
2121 exclude :
2222 # Exclude all but the latest Python from all
2323 # but Linux
2424 - platform :
2525 { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
26- python-version : " 3.12" # MacOS can't run 3.12 yet... We want 3.10 and 3.11
27- - platform : { name: "windows", os: "windows-latest", shell: "pwsh" }
2826 python-version : " 3.10"
29- - platform : { name: "windows", os: "windows-latest", shell: "pwsh" }
27+ - platform :
28+ { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
29+ python-version : " 3.11"
30+ - platform : { name: "windows", os: "windows-latest", shell: "bash -l {0}" }
31+ python-version : " 3.10"
32+ - platform : { name: "windows", os: "windows-latest", shell: "bash -l {0}" }
3033 python-version : " 3.11"
3134 environment :
3235 name : biosimspace-build
@@ -37,30 +40,44 @@ jobs:
3740 SIRE_DONT_PHONEHOME : 1
3841 SIRE_SILENT_PHONEHOME : 1
3942 steps :
40- - uses : conda-incubator/setup-miniconda@v3
43+ #
44+ - uses : actions/checkout@v4
45+ with :
46+ fetch-depth : 0
47+ #
48+ - name : Compute version info
49+ shell : bash
50+ run : python actions/update_recipe.py
51+ #
52+ - name : Create sdist
53+ shell : bash
54+ run : pip install build && python -m build --sdist && mv dist/*.tar.gz biosimspace-source.tar.gz
55+ working-directory : ${{ github.workspace }}
56+ #
57+ - name : Install pixi
58+ uses : prefix-dev/setup-pixi@v0.9.4
4159 with :
42- auto-update-conda : true
43- python-version : ${{ matrix.python-version }}
44- activate-environment : bss_build
45- miniforge-version : latest
46- #
47- - name : Clone the devel branch
48- run : git clone -b devel https://github.com/openbiosim/biosimspace
49- #
50- - name : Setup Conda
51- run : conda install -y -c conda-forge boa anaconda-client packaging pip-requirements-parser
52- #
53- - name : Update Conda recipe
54- run : python ${{ github.workspace }}/biosimspace/actions/update_recipe.py
55- #
56- - name : Prepare build location
57- run : mkdir ${{ github.workspace }}/build
58- #
59- - name : Build Conda package using conda build
60- run : conda build -c conda-forge -c openbiosim/label/dev ${{ github.workspace }}/biosimspace/recipes/biosimspace
61- #
62- - name : Upload Conda package
63- run : python ${{ github.workspace }}/biosimspace/actions/upload_package.py
60+ run-install : false
61+ #
62+ - name : Install rattler-build
63+ shell : bash
64+ run : pixi global install rattler-build
65+ #
66+ - name : Write Python variant config
67+ shell : bash
68+ run : printf 'python:\n - "${{ matrix.python-version }}"\n' > "${{ github.workspace }}/python_variant.yaml"
69+ #
70+ - name : Build package using rattler-build
71+ shell : bash
72+ run : rattler-build build --recipe "${{ github.workspace }}/recipes/biosimspace" -c conda-forge -c openbiosim/label/dev --variant-config "${{ github.workspace }}/python_variant.yaml"
73+ #
74+ - name : Install anaconda-client
75+ shell : bash
76+ run : python -m pip install anaconda-client
77+ #
78+ - name : Upload package
79+ shell : bash
80+ run : python actions/upload_package.py
6481 env :
6582 ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
6683 ANACONDA_LABEL : dev
0 commit comments