-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.09 KB
/
validate.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
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Validate
on:
push:
pull_request:
branches: [ main ]
jobs:
validate:
name: Validate
strategy:
matrix:
include:
- os: macos-latest
command: ".github/workflows/val.sh"
- os: ubuntu-latest
command: ".github/workflows/val.sh"
chmod: true
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- if: matrix.os == 'macos-latest'
name: Build
run: |
brew install htslib
INCLUDE_DIR="-I/opt/homebrew/opt/openssl@3/include/ \
-I/opt/homebrew/Cellar/htslib/1.21/include/" \
LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/3.4.0/lib \
-L/opt/homebrew/Cellar/htslib/1.21/lib" \
make all -j
- if: matrix.os == 'ubuntu-latest'
name: Build
run: |
sudo apt-get install libhts-dev
make all -j
- name: Validate
run: |
chmod +x .github/workflows/val.sh
${{ matrix.command }}