-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (98 loc) · 2.35 KB
/
build-so.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Build CJyafn Shared Object and Extensions
on:
push:
branches:
- stable
workflow_dispatch:
jobs:
build-so:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Build shared object
run: |
bash ./utils/build-linux-so.sh
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: linux-x64
if-no-files-found: error
path: target/release/libcjyafn.so
retention-days: 1
build-extensions:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Build extensions
run: |
cd jyafn-ext
make install
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: extensions-linux-x64
if-no-files-found: error
path: ~/.jyafn/extensions/*-latest.so
retention-days: 1
build-dylib:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Build shared object
run: |
make cjyafn
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: macos-arm64
if-no-files-found: error
path: target/release/libcjyafn.dylib
retention-days: 1
build-extensions-macos:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Build extensions
run: |
cd jyafn-ext
make install
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: extensions-macos-arm64
if-no-files-found: error
path: ~/.jyafn/extensions/*-latest.dylib
retention-days: 1
release:
needs:
- build-so
- build-extensions
- build-dylib
- build-extensions-macos
runs-on: ubuntu-latest
steps:
- name: Download files
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
*.so
*.dylib
tag_name: commit-id=${{ github.sha }}
prerelease: false
make_latest: true