@@ -17,14 +17,12 @@ jobs:
1717 - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" }
1818 - { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
1919 exclude :
20- # Exclude all but the latest Python from all
21- # but Linux
2220 - platform :
2321 { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
2422 python-version : " 3.10"
2523 - platform :
2624 { name: "macos", os: "macos-latest", shell: "bash -l {0}" }
27- python-version : " 3.12" # MacOS can't run 3.12 yet...
25+ python-version : " 3.12" # MacOS can't run 3.12 yet...
2826 environment :
2927 name : ghostly-build
3028 defaults :
@@ -35,29 +33,28 @@ jobs:
3533 SIRE_SILENT_PHONEHOME : 1
3634 REPO : " ${{ github.event.pull_request.head.repo.full_name || github.repository }}"
3735 steps :
38- - uses : conda-incubator/setup-miniconda@v3
36+ #
37+ - uses : actions/checkout@v4
38+ #
39+ - name : Install rattler-build
40+ uses : prefix-dev/rattler-build-action@v0.2.34
3941 with :
40- auto-update-conda : true
41- python-version : ${{ matrix.python-version }}
42- activate-environment : ghostly_build
43- miniforge-version : latest
44- #
45- - name : Clone the feature branch
46- run : git clone -b ${{ github.head_ref }} --single-branch https://github.com/${{ env.REPO }} ghostly
47- #
48- - name : Setup Conda
49- run : conda install -y -c conda-forge boa anaconda-client packaging
50- #
51- - name : Update Conda recipe
52- run : python ${{ github.workspace }}/ghostly/actions/update_recipe.py
53- #
54- - name : Prepare build location
55- run : mkdir ${{ github.workspace }}/build
56- #
57- - name : Build Conda package using conda build using main channel
42+ tool-version : latest
43+ build-args : --help
44+ #
45+ - name : Update recipe
46+ run : python ${{ github.workspace }}/actions/update_recipe.py
47+ #
48+ - name : Write Python variant config
49+ shell : bash
50+ run : printf 'python:\n - "${{ matrix.python-version }}"\n' > "${{ github.workspace }}/python_variant.yaml"
51+ #
52+ - name : Build package using rattler-build (main channel)
5853 if : ${{ github.base_ref == 'main' }}
59- run : conda build -c conda-forge -c openbiosim/label/main ${{ github.workspace }}/ghostly/recipes/ghostly
60- #
61- - name : Build Conda package using conda build using dev channel
54+ shell : bash
55+ run : rattler-build build --recipe "${{ github.workspace }}/recipes/ghostly" -c conda-forge -c openbiosim/label/main --variant-config "${{ github.workspace }}/python_variant.yaml"
56+ #
57+ - name : Build package using rattler-build (dev channel)
6258 if : ${{ github.base_ref != 'main' }}
63- run : conda build -c conda-forge -c openbiosim/label/dev ${{ github.workspace }}/ghostly/recipes/ghostly
59+ shell : bash
60+ run : rattler-build build --recipe "${{ github.workspace }}/recipes/ghostly" -c conda-forge -c openbiosim/label/dev --variant-config "${{ github.workspace }}/python_variant.yaml"
0 commit comments