-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (30 loc) · 959 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Test
on: [push,pull_request]
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libopenblas-dev liblapack-dev libarpack2-dev libsuperlu-dev
- name: Cache libraries
id: cache-libs
uses: actions/cache@v2
with:
path: lib
key: ${{ runner.os }}-${{ hashFiles('lib.sh') }}
- name: Build libraries
if: steps.cache-libs.outputs.cache-hit != 'true'
run: bash lib.sh
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --parallel 2
- name: Test
working-directory: ${{github.workspace}}/build/bin
run: ${{github.workspace}}/build/bin/varGWAS_test