Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/action-conda-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Conda-build

# runs on a push on master and at the end of every day
on:
push:
branches:
- master
- github-actions2 # testing branch
schedule:
- cron: '0 0 * * *'

jobs:
linux:
runs-on: "ubuntu-latest" # use only Linux for conda build
strategy:
matrix:
python-version: [3.8] # use only the latest for conda build
fail-fast: false
name: Linux Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
channels: conda-forge
- shell: bash -l {0}
run: mkdir -p condabuild_artifacts_python_${{ matrix.python-version }}
- shell: bash -l {0}
run: conda --version 2>&1 | tee condabuild_artifacts_python_${{ matrix.python-version }}/conda_version.txt
- shell: bash -l {0}
run: python -V 2>&1 | tee condabuild_artifacts_python_${{ matrix.python-version }}/python_version.txt
- shell: bash -l {0}
run: conda install -y conda-build conda-verify ripgrep anaconda-client 2>&1 | tee condabuild_artifacts_python_${{ matrix.python-version }}/install_conda_buildtools.txt
- shell: bash -l {0}
run: conda build package -c conda-forge -c esmvalgroup 2>&1 | tee condabuild_artifacts_python_${{ matrix.python-version }}/conda_build.txt
- name: Upload artifacts
if: ${{ always() }} # upload artifacts even if fail
uses: actions/upload-artifact@v2
with:
name: Condabuild_python_${{ matrix.python-version }}
path: condabuild_artifacts_python_${{ matrix.python-version }}