Skip to content

Commit

Permalink
add github ci33
Browse files Browse the repository at this point in the history
  • Loading branch information
Bechir committed Apr 2, 2024
1 parent f06f3b5 commit 87c3e41
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/common-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache conda
uses: actions/cache@v3
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('aare-environment.yml') }}
- uses: conda-incubator/setup-miniconda@v3
if: ${{ contains(inputs.use-system-libraries, 'ON')}}
with:
activate-environment: aare
environment-file: aare-environment.yml
python-version: 3.11
# - name: install dependencies
# if: ${{ contains(inputs.use-system-libraries, 'ON')}}
# shell: bash -el {0}
# run: |
# conda info
# conda install conda-forge::fmt conda-forge::catch2 conda-forge::pybind11 conda-forge::nlohmann_json
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: build
shell: bash -el {0}
run: |
Expand Down

0 comments on commit 87c3e41

Please sign in to comment.