-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (40 loc) · 1.18 KB
/
release.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
name: release
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-18.04
container: nvidia/cuda:10.2-devel-ubuntu18.04
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: recursive
- uses: olegtarasov/get-tag@v2
id: tagName
- name: Announce version
run: echo "creating library for ${GIT_TAG_NAME}"
- name: Install deps
run: |
apt-get update -y
apt-get update
apt-get install cmake openjdk-11-jdk default-jdk -y
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
- name: Build project
run: |
cmake -H. -Bbuild
make -C build yacx
make -C build yacx-jni
export unix_dir=yacx-v${GIT_TAG_NAME}_unix/
mkdir -p dist/$unix_dir/java/bin/
cp build/libyacx.so dist/$unix_dir
cp build/libyacx-jni.so dist/$unix_dir
cp -R build/java/bin/yacx/ dist/$unix_dir/java/bin/
- name: Upload release artifacts
uses: fnkr/github-action-ghr@v1
env:
GHR_COMPRESS: xz
GHR_PATH: dist/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}