Skip to content

Commit

Permalink
try mamba
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholaswogan committed Dec 19, 2024
1 parent 71dcab2 commit 85b664c
Showing 1 changed file with 43 additions and 18 deletions.
61 changes: 43 additions & 18 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,54 @@ jobs:
with:
submodules: 'true'

- name: Setup Fortran
uses: awvwgk/setup-fortran@main
id: setup-fortran
with:
compiler: gcc
version: 11
# - name: Setup Fortran
# uses: awvwgk/setup-fortran@main
# id: setup-fortran
# with:
# compiler: gcc
# version: 11

# - name: Setup Python
# uses: actions/setup-python@v2
# with:
# python-version: 3.9

- name: Setup Python
uses: actions/setup-python@v2
- uses: mamba-org/setup-micromamba@v2
with:
python-version: 3.9
environment-name: test-env
create-args: >-
python
numpy
scipy
h5py
scikit-build
cmake
ninja
cython
fypp
pip
clang
gfortran
valgrind
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install h5py fypp
sudo apt update
sudo apt install libblas-dev liblapack-dev
sudo apt install valgrind
sudo apt install libhdf5-dev
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install h5py fypp
# sudo apt update
# sudo apt install libblas-dev liblapack-dev
# sudo apt install valgrind
# sudo apt install libhdf5-dev

- name: configure cmake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
run: |
export CC="$(which clang)"
export CXX="$(which clang)"
export FC="$(which gfortran)"
export CONDA_PREFIX_SAVE=$CONDA_PREFIX
unset CONDA_PREFIX
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH=$CONDA_PREFIX_SAVE
export CONDA_PREFIX=$CONDA_PREFIX_SAVE
- name: build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Expand Down

0 comments on commit 85b664c

Please sign in to comment.