55
66jobs :
77 build-conda :
8+ if : false # Disabled: workflow doesn't work yet
89 name : Build Conda Package
910 runs-on : ${{ matrix.os }}
1011 strategy :
1112 matrix :
12- os : [ubuntu-latest, windows-latest, macos-15-intel] # Intel runner for conda compatibility
13- python-version : ['3.8', '3.9', '3.10', '3.11', '3.12']
13+ os : [ubuntu-latest] # Intel runner for conda compatibility
14+ python-version : ['3.11']
15+ # python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1416 # Note: Excluded Python 3.13+ due to conda-build virtual package resolution issues
1517 # Note: Using macos-15-intel (x86_64) for consistency with conda-forge practices
1618
@@ -21,61 +23,69 @@ jobs:
2123 uses : conda-incubator/setup-miniconda@v3
2224 with :
2325 python-version : ${{ matrix.python-version }}
26+ auto-update-conda : false
27+ auto-activate-base : false
28+ show-channel-urls : true
2429 channels : conda-forge
2530 channel-priority : strict
2631 activate-environment : build-env
2732
28- - name : Install conda-build and anaconda-client
29- shell : bash -l {0}
30- run : |
31- # Use classic solver to avoid libmamba compatibility issues
32- conda config --set solver classic
33- conda install -y conda-build anaconda-client
33+ # - name: Install conda-build and anaconda-client
34+ # shell: bash -l {0}
35+ # run: |
36+ # # Use classic solver to avoid libmamba compatibility issues
37+ # conda config --set solver classic
38+ # conda install -y conda-build anaconda-client
3439
3540 - name : Build conda package
36- shell : bash -l {0}
37- run : |
38- conda build conda.recipe --output-folder ./conda-bld
39-
40- - name : Upload build artifacts
41- uses : actions/upload-artifact@v4
41+ uses : uibcdf/action-build-and-upload-conda-packages@v2.0.0
4242 with :
43- name : conda-package-${{ matrix.os }}-py${{ matrix.python-version }}
44- path : ./conda-bld/**/*.tar.bz2
45- retention-days : 7
43+ meta_yaml_dir : conda.recipe/meta.yaml # Replace with the path to your meta.yaml directory
44+ user : kzhao77
45+ token : ${{ secrets.ANACONDA_API_TOKEN }} # Replace with the name of your Anaconda Token secret
46+ # shell: bash -l {0}
47+ # run: |
48+ # conda build conda.recipe --output-folder ./conda-bld
4649
47- publish-conda :
48- name : Publish to Anaconda Cloud
49- needs : build-conda
50- runs-on : ubuntu-latest
51- if : github.event_name == 'release' && github.event.action == 'published'
50+ # - name: Upload build artifacts
51+ # uses: actions/upload-artifact@v4
52+ # with:
53+ # name: conda-package-${{ matrix.os }}-py${{ matrix.python-version }}
54+ # path: ./conda-bld/**/*.tar.bz2
55+ # retention-days: 7
5256
53- steps :
54- - name : Set up Conda
55- uses : conda-incubator/setup-miniconda@v3
56- with :
57- python-version : ' 3.11'
58- channels : conda-forge
57+ # publish-conda:
58+ # name: Publish to Anaconda Cloud
59+ # needs: build-conda
60+ # runs-on: ubuntu-latest
61+ # if: github.event_name == 'release' && github.event.action == 'published'
5962
60- - name : Install anaconda-client
61- shell : bash -l {0}
62- run : |
63- conda install -y anaconda-client
63+ # steps:
64+ # - name: Set up Conda
65+ # uses: conda-incubator/setup-miniconda@v3
66+ # with:
67+ # python-version: '3.11'
68+ # channels: conda-forge
6469
65- - name : Download all artifacts
66- uses : actions/download-artifact@v4
67- with :
68- pattern : conda-package-*
69- merge-multiple : true
70- path : ./conda-packages
70+ # - name: Install anaconda-client
71+ # shell: bash -l {0}
72+ # run: |
73+ # conda install -y anaconda-client
7174
72- - name : Upload to Anaconda Cloud
73- shell : bash -l {0}
74- env :
75- ANACONDA_API_TOKEN : ${{ secrets.ANACONDA_API_TOKEN }}
76- run : |
77- # Login using token
78- anaconda -t $ANACONDA_API_TOKEN upload ./conda-packages/**/*.tar.bz2 --force --label main
75+ # - name: Download all artifacts
76+ # uses: actions/download-artifact@v4
77+ # with:
78+ # pattern: conda-package-*
79+ # merge-multiple: true
80+ # path: ./conda-packages
81+
82+ # - name: Upload to Anaconda Cloud
83+ # shell: bash -l {0}
84+ # env:
85+ # ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
86+ # run: |
87+ # # Login using token
88+ # anaconda -t $ANACONDA_API_TOKEN upload ./conda-packages/**/*.tar.bz2 --force --label main
7989
8090 - name : Summary
8191 shell : bash -l {0}
8494 echo "" >> $GITHUB_STEP_SUMMARY
8595 echo "Users can install with:" >> $GITHUB_STEP_SUMMARY
8696 echo '```bash' >> $GITHUB_STEP_SUMMARY
87- echo "conda install -c ${{ github.repository_owner }} slick_queue_py " >> $GITHUB_STEP_SUMMARY
97+ echo "conda install -c ${{ github.repository_owner }} slick-queue-py " >> $GITHUB_STEP_SUMMARY
8898 echo '```' >> $GITHUB_STEP_SUMMARY
0 commit comments