-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (45 loc) · 1.14 KB
/
build-csrc.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
name: build-csrc
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-wasm:
runs-on: ubuntu-latest
container:
image: juniorrojas/llvm-enzyme:latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Build
run: |
export LLVM_BIN_DIR=/usr/lib/llvm-11/bin
export ENZYME=/Enzyme/enzyme/build/Enzyme/LLVMEnzyme-11.so
export BUILD_WASM=1
./build.sh
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: algovivo.wasm
path: build/algovivo.wasm
build-dynamic-lib:
runs-on: ubuntu-latest
container:
image: juniorrojas/llvm-enzyme:latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Build
run: |
export LLVM_BIN_DIR=/usr/lib/llvm-11/bin
export ENZYME=/Enzyme/enzyme/build/Enzyme/LLVMEnzyme-11.so
export BUILD_WASM=0
./build.sh
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: libalgovivo.so
path: build/libalgovivo.so