From 943ae00dd42f36f1f67dacd2d48d20923770ea28 Mon Sep 17 00:00:00 2001 From: Tristan Walter <mooch443@googlemail.com> Date: Mon, 19 Oct 2020 13:01:20 +0200 Subject: [PATCH] Update cmake.yml --- .github/workflows/cmake.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 6ecfd37..476cc44 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -20,6 +20,14 @@ jobs: python-version: ["3.7"] steps: - uses: actions/checkout@v2 + - name: Cache conda + uses: actions/cache@v1 + env: + # Increase this value to reset cache if etc/example-environment.yml has not changed + CACHE_NUMBER: 0 + with: + path: ~/conda_pkgs_dir + key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('.github/environment.yml') }} - uses: conda-incubator/setup-miniconda@v1 with: environment-file: .github/environment.yml @@ -27,6 +35,8 @@ jobs: python-version: ${{ matrix.python-version }} channels: main,conda-forge auto-activate-base: true + auto-update-conda: true + use-only-tar-bz2: true - shell: bash -l {0} run: | conda info @@ -41,5 +51,5 @@ jobs: shell: bash # Execute the build. You can specify a specific target with "--target <NAME>" run: | - cd conda + cd $GITHUB_WORKSPACE/conda conda build . -c main -c conda-forge -- GitLab