-
Notifications
You must be signed in to change notification settings - Fork 0
148 lines (138 loc) · 3.34 KB
/
release.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
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 build
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: extensions-linux-x64
if-no-files-found: error
path: ./target/extensions/*.so
retention-days: 1
build-wheels:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Build wheels
run: |
bash ./utils/build-linux-wheels.sh
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: wheels-linux-x64
if-no-files-found: error
path: ./target/wheels/*.whl
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-wheels-macos:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: stable
- name: Prepare the machine
run: |
pip install maturin
- name: Build wheels
run: |
bash ./utils/build-macos-wheels.sh
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: wheels-macos-arm64
if-no-files-found: error
path: ./target/wheels/*.whl
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 build
- name: Artifact update
uses: actions/upload-artifact@v4
with:
name: extensions-macos-arm64
if-no-files-found: error
path: ./target/extensions/*.dylib
retention-days: 1
release:
needs:
- build-so
- build-wheels
- build-extensions
- build-dylib
- build-wheels-macos
- 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
*.whl
tag_name: commit-id=${{ github.sha }}
prerelease: false
make_latest: true