Skip to content

Commit

Permalink
BLD: Rework to use conda
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Mar 20, 2022
1 parent fa80099 commit 8239a8b
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/build_pkg.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: "Build d-SEAMS"
on: [push, pull_request]
defaults:
run:
shell: bash -l {0}
jobs:
build_pkg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v12
- uses: actions/checkout@v2
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v8
with:
name: dseams
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-env -if .
- run: yodaStruct -c lua_inputs/config.yml
- run: echo OK
environment-file: environment.yml
environment-name: dseams
- name: Build and Install yodaStruct
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$CONDA_PREFIX ../
make -j$(nproc)
make install
- name: Test installed yodaStruct
run: yodaStruct -c lua_inputs/config.yml

0 comments on commit 8239a8b

Please sign in to comment.