add deps in debian #62
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 | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: debian:10 | |
| options: --user root | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install tools | |
| run: | | |
| # Replace deb.debian.org with archive.debian.org for buster | |
| sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list | |
| sed -i 's|security.debian.org|archive.debian.org/debian-security/|g' /etc/apt/sources.list | |
| # Also update for buster/updates | |
| sed -i '/buster\/updates/d' /etc/apt/sources.list || true | |
| apt-get update | |
| apt-get install -y git gcc g++ | |
| - 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 | |
| # build-oldkernel: | |
| # runs-on: ubuntu-latest | |
| # container: | |
| # image: debian:9 | |
| # 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_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 |