-
Notifications
You must be signed in to change notification settings - Fork 8
56 lines (53 loc) · 1.36 KB
/
build.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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build and Tests
on:
workflow_dispatch:
branches: [ main ]
push:
branches: [ main ]
paths:
- '**.cpp'
- '**.h'
- '**.py'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
steps:
- name: Install LLVM-10
run: |
wget https://apt.llvm.org/llvm.sh
sudo bash llvm.sh 10
- uses: actions/checkout@v3
- name: Setup Conda dependencies
uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge,bioconda,defaults
auto-activate-base: true
activate-environment: mlbridge
environment-file: mlbridge.yml
- name: Install other dependencies and build
run: bash .github/workflows/mlbridge_build.sh release
- name: Setup Conda dependencies
uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge,bioconda,defaults
auto-activate-base: true
activate-environment: mlbridge
environment-file: mlbridge.yml
- name: Run Tests
run: |
conda init
conda activate mlbridge
pip install compilerinterface
cd $GITHUB_WORKSPACE/test
bash mlbridge-test.sh
- uses: actions/upload-artifact@v2
with:
name: MLCompilerBridge
path: |
install/lib
install/include