-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 1.71 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
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build GKLS
on:
push:
branches: [ "main", "dev"]
tags:
- 'v*'
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build-x86-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get install python3
sudo apt-get install -y python3-dev
python -m pip install --upgrade pip
# Runs a single command using the runners shell
- name: Build GKLS
run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/lib
sh build_and_install.sh
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: linux-artifact
path: |
pygkls/libpygkls.so
pygkls/pygkls*.so
build-arm-macos:
runs-on: macos-latest
needs: build-x86-linux
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pybind11
- name: Build GKLS
run: |
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$HOME/.local/lib
sh build_and_install.sh
- name: Download artifact
uses: actions/download-artifact@master
with:
name: linux-artifact
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body: "Please, make sure to put `pygkls*.so` in the Python package directory and `libpygkls.{so, dylib}` in the dinamyc library directory."
files: |
*.so
pygkls/*.so
pygkls/*.dylib