@@ -2,8 +2,8 @@ name: Release Main
22
33# Note that push and pull-request builds are automatically
44# now skipped by GitHub if
5- # [skip ci], [ci skip], [no ci], [skip actions], or [actions skip]
6- # are in the commit message. We don't need to check for this ourselves.
5+ # [skip ci], [ci skip], [no ci], [skip actions], or [actions skip]
6+ # are in the commit message. We don't need to check for this ourselves.
77
88# Only allow this action to run on a manual run.
99# We should specify when run whether or not we want
2929 - { name: "windows", os: "windows-latest", shell: "pwsh" }
3030 - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" }
3131 - { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
32- exclude :
33- - platform :
34- { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
35- python-version : " 3.12" # MacOS can't run 3.12 yet...
32+ # No exclusions - release builds all combinations
3633 environment :
3734 name : sire-build
3835 defaults :
@@ -45,32 +42,39 @@ jobs:
4542 REPO : " ${{ github.event.pull_request.head.repo.full_name || github.repository }}"
4643 steps :
4744 #
48- - uses : conda-incubator/setup-miniconda@v3
45+ - uses : actions/checkout@v4
4946 with :
50- auto-update-conda : true
51- python-version : ${{ matrix.python-version }}
52- activate-environment : sire_build
53- miniforge-version : latest
47+ ref : main
48+ fetch-depth : 0
5449 #
55- - name : Clone the main branch (push to main)
56- run : git clone -b main https://github.com/openbiosim/sire sire
50+ - name : Install pixi
51+ uses : prefix-dev/setup-pixi@v0.9.4
52+ with :
53+ run-install : false
54+ #
55+ - name : Install rattler-build
56+ shell : bash
57+ run : pixi global install rattler-build
5758 #
58- - name : Setup Conda
59- run : conda install -y -c conda-forge conda-build boa anaconda-client packaging pip-requirements-parser
59+ - name : Generate recipe
60+ run : python ${{ github.workspace }}/actions/generate_recipe.py --features obs emle
6061 #
61- - name : Update Conda recipe
62- run : python ${{ github.workspace }}/sire/actions/update_recipe.py
62+ - name : Write Python variant config
63+ shell : bash
64+ run : printf 'python:\n - "${{ matrix.python-version }}"\n' > "${{ github.workspace }}/python_variant.yaml"
6365 #
64- - name : Prepare build location
65- run : mkdir ${{ github.workspace }}/build
66+ - name : Build package using rattler-build
67+ shell : bash
68+ run : rattler-build build --recipe "${{ github.workspace }}/recipes/sire" -c conda-forge -c openbiosim/label/dev --variant-config "${{ github.workspace }}/python_variant.yaml"
6669 #
67- - name : Build Conda package using conda build
68- run : conda build -c conda-forge -c openbiosim/label/dev ${{ github.workspace }}/sire/recipes/sire
70+ - name : Install anaconda-client
71+ run : python -m pip install anaconda-client
72+ if : github.event.inputs.upload_packages == 'yes'
6973 #
70- - name : Upload Conda package
74+ - name : Upload package
7175 # upload to the 'test' channel
72- run : python ${{ github.workspace }}/sire/ actions/upload_package.py test
76+ run : python ${{ github.workspace }}/actions/upload_package.py test
7377 env :
74- SRC_DIR : ${{ github.workspace }}/sire
78+ SRC_DIR : ${{ github.workspace }}
7579 ANACONDA_TOKEN : ${{ secrets.ANACONDA_TOKEN }}
7680 if : github.event.inputs.upload_packages == 'yes'
0 commit comments