Skip to content

Commit

Permalink
Merge pull request #12 from ornlneutronimaging/add_ci_cd
Browse files Browse the repository at this point in the history
add CI configuration
  • Loading branch information
KedoKudo authored Apr 21, 2023
2 parents 4bb6c61 + 2dc0310 commit dab5317
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: sophiread_ci

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- qa
- next
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
mamba-version: "*"
environment-file: sophiread/environment_linux.yml
- name: build_sophiread
shell: bash -l {0}
run: |
cd sophiread
mkdir build
cd build
cmake ..
make
- name: test_sophiread
shell: bash -l {0}
run: |
cd sophiread/build
ctest -V

0 comments on commit dab5317

Please sign in to comment.