publish v2025.01 #80
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build REST | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/conda.yml | |
| - recipe/** | |
| - recipe_oldkern/** | |
| # pull_request: | |
| # branches: | |
| # - main | |
| jobs: | |
| # build-default-sysroot228: | |
| # runs-on: ubuntu-22.04 | |
| # defaults: | |
| # run: | |
| # shell: bash -l {0} | |
| # steps: | |
| # - uses: actions/checkout@v2 | |
| # - name: Set up Miniconda | |
| # uses: conda-incubator/setup-miniconda@v3 | |
| # with: | |
| # auto-update-conda: true | |
| # activate-environment: build-env | |
| # python-version: 3.11 | |
| # environment-file: recipe/env.yaml | |
| # # use-mamba: true | |
| # - name: Build recipe | |
| # run: | | |
| # conda info | |
| # # conda env list | |
| # conda activate build-env | |
| # conda-build recipe --output-folder output -c conda-forge -c mokit/label/cf | |
| # # conda-build --test output/*/*tar.bz2 | |
| # - name: Upload artifacts | |
| # #if: always() | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: rest-conda-package | |
| # path: | |
| # output/*/*tar.bz2 | |
| # - name: Upload to Anaconda.org | |
| # env: | |
| # ANACONDA_API_TOKEN: ${{ secrets.ANACONDA }} | |
| # run: | | |
| # anaconda -t $ANACONDA_API_TOKEN upload ./output/*/*.tar.bz2 --skip-existing | |
| build-debian10-sysroot228: | |
| runs-on: ubuntu-22.04 | |
| container: | |
| image: debian:10 | |
| options: --user root | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install tools | |
| run: | | |
| # Completely replace sources.list with proper archive URLs | |
| cat > /etc/apt/sources.list << 'EOF' | |
| deb http://archive.debian.org/debian buster main contrib non-free | |
| deb http://archive.debian.org/debian buster-updates main contrib non-free | |
| deb http://archive.debian.org/debian-security buster/updates main contrib non-free | |
| EOF | |
| apt-get update | |
| apt-get install -y git make | |
| - name: Set up Miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| activate-environment: build-env | |
| python-version: 3.11 | |
| environment-file: recipe/env.yaml | |
| # use-mamba: true | |
| - name: Build recipe | |
| run: | | |
| conda info | |
| # conda env list | |
| conda activate build-env | |
| conda-build recipe --output-folder output -c conda-forge -c mokit/label/cf | |
| # conda-build --test output/*/*tar.bz2 | |
| - name: Upload artifacts | |
| #if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rest-conda-package-debian10 | |
| path: | |
| output/*/*tar.bz2 | |
| - name: Upload to Anaconda.org | |
| env: | |
| ANACONDA_API_TOKEN: ${{ secrets.ANACONDA }} | |
| run: | | |
| anaconda -t $ANACONDA_API_TOKEN upload ./output/*/*.tar.bz2 --skip-existing | |
| build-debian10-sysroot217: | |
| runs-on: ubuntu-22.04 | |
| container: | |
| image: debian:10 | |
| options: --user root | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install tools | |
| run: | | |
| # Completely replace sources.list with proper archive URLs | |
| cat > /etc/apt/sources.list << 'EOF' | |
| deb http://archive.debian.org/debian buster main contrib non-free | |
| deb http://archive.debian.org/debian buster-updates main contrib non-free | |
| deb http://archive.debian.org/debian-security buster/updates main contrib non-free | |
| EOF | |
| apt-get update | |
| apt-get install -y git make | |
| - name: Set up Miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| activate-environment: build-env | |
| python-version: 3.11 | |
| environment-file: recipe_oldkern/env.yaml | |
| # use-mamba: true | |
| - name: Install tools | |
| run: | | |
| apt-get install -y git | |
| - name: Build recipe | |
| run: | | |
| conda info | |
| # conda env list | |
| conda activate build-env | |
| conda-build recipe_oldkern --output-folder output -c conda-forge -c mokit/label/cf | |
| - name: Upload artifacts | |
| #if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rest-conda-package-oldkernel | |
| path: | |
| output/*/*tar.bz2 | |
| - name: Upload to Anaconda.org | |
| env: | |
| ANACONDA_API_TOKEN: ${{ secrets.ANACONDA }} | |
| run: | | |
| anaconda -t $ANACONDA_API_TOKEN upload ./output/*/*.tar.bz2 --skip-existing --label oldkernel |