@@ -3,7 +3,7 @@ name: Release Devel
33on :
44 workflow_dispatch :
55 push :
6- branches : [ devel ]
6+ branches : [devel]
77
88jobs :
99 build :
@@ -18,11 +18,13 @@ jobs:
1818 - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" }
1919 - { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
2020 exclude :
21- # Exclude all but the latest Python from all
22- # but Linux
21+ # Exclude all but the latest Python from macOS
2322 - platform :
2423 { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
25- python-version : " 3.12" # MacOS can't run 3.12 yet... We want 3.10 and 3.11
24+ python-version : " 3.10"
25+ - platform :
26+ { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
27+ python-version : " 3.11"
2628 environment :
2729 name : ghostly-build
2830 defaults :
@@ -32,31 +34,45 @@ jobs:
3234 SIRE_DONT_PHONEHOME : 1
3335 SIRE_SILENT_PHONEHOME : 1
3436 steps :
35- - uses : conda-incubator/setup-miniconda@v3
37+ #
38+ - uses : actions/checkout@v4
39+ with :
40+ fetch-depth : 0
41+ #
42+ - name : Compute version info
43+ shell : bash
44+ run : python actions/update_recipe.py
45+ #
46+ - name : Create sdist
47+ run : pip install build && python -m build --sdist && mv dist/*.tar.gz ghostly-source.tar.gz
48+ working-directory : ${{ github.workspace }}
49+ #
50+ - name : Install pixi
51+ uses : prefix-dev/setup-pixi@v0.9.4
3652 with :
37- auto-update-conda : true
38- python-version : ${{ matrix.python-version }}
39- activate-environment : ghostly_build
40- miniforge-version : latest
41- #
42- - name : Clone the devel branch
43- run : git clone -b devel https://github.com/openbiosim/ghostly
44- #
45- - name : Setup Conda
46- run : conda install -y -c conda-forge boa anaconda-client packaging
47- #
48- - name : Update Conda recipe
49- run : python ${{ github.workspace }}/ghostly/actions/update_recipe.py
50- #
51- - name : Prepare build location
52- run : mkdir ${{ github.workspace }}/build
53- #
54- - name : Build Conda package using conda build
55- run : conda build -c conda-forge -c openbiosim/label/dev ${{ github.workspace }}/ghostly/recipes/ghostly
56- #
57- - name : Upload Conda package
58- run : python ${{ github.workspace }}/ghostly/ actions/upload_package.py
53+ run-install : false
54+ #
55+ - name : Install rattler-build
56+ shell : bash
57+ run : pixi global install rattler-build
58+ #
59+ - name : Write Python variant config
60+ shell : bash
61+ run : printf 'python:\n - "${{ matrix.python-version }}"\n' > "${{ github.workspace }}/python_variant.yaml"
62+ #
63+ - name : Build package using rattler-build
64+ shell : bash
65+ run : rattler-build build --recipe " ${{ github.workspace }}/recipes/ ghostly" -c conda-forge -c openbiosim/label/dev --variant-config "${{ github.workspace }}/python_variant.yaml"
66+ #
67+ - name : Install anaconda-client
68+ shell : bash
69+ run : python -m pip install anaconda-client
70+ if : ${{ matrix.platform.name == 'linux' && matrix.python-version == '3.12' }}
71+ #
72+ - name : Upload package
73+ shell : bash
74+ run : python actions/upload_package.py
5975 env :
6076 ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
6177 ANACONDA_LABEL : dev
62- if : ${{ matrix.platform.name == 'linux' && matrix.python-version == '3.11 ' }}
78+ if : ${{ matrix.platform.name == 'linux' && matrix.python-version == '3.12 ' }}
0 commit comments