-
-
Notifications
You must be signed in to change notification settings - Fork 17
217 lines (198 loc) · 17 KB
/
build.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
name: Build and Deploy
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_call:
permissions:
contents: write
pages: write
id-token: write
packages: write
attestations: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# - target: x86_64-apple-darwin
# os: macos-latest
# - target: aarch64-apple-darwin
# os: macos-latest
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
# - target: aarch64-unknown-linux-gnu
# os: ubuntu-latest
steps:
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
if: matrix.target == 'aarch64-unknown-linux-gnu'
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}
- name: Extract openapi3.json
run: |
mkdir -p docs
target/${{ matrix.target }}/release/sctgdesk-api-server &
sleep 5
curl http://127.0.0.1:21114/openapi.json > docs/openapi3.json
kill $!
- name: Create Rapidoc index.html
run: |
mkdir -p docs
cat <<EOF > docs/index.html
<!DOCTYPE html>
<!-- Important: must specify -->
<html>
<head>
<meta charset="utf-8" />
<!-- Important: rapi-doc uses utf8 charecters -->
<script
type="module"
src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"
></script>
<script src="openapisnippet.min.js"></script>
<script>
window.addEventListener('DOMContentLoaded', (event) => {
const rapidocEl = document.getElementById('rapidoc');
const spec_url = "data:application/json;base64,$(base64 -w 0 docs/openapi3.json)";
const targets = ['c','javascript_fetch','go','php'];
fetch(spec_url)
.then((res) => res.json())
.then((data) => {
if (data['host'] === undefined) {
data['host'] = window.location.host;
}
if (data['basePath'] === undefined) {
data['basePath'] = '/';
}
for (let path in data.paths) {
for (let method in data.paths[path]) {
const snippets = OpenAPISnippets.getEndpointSnippets(data,path,method,targets);
const pathItem = data.paths[path][method];
const code_samples = [];
for (let snippet of snippets.snippets) {
code_samples.push({
lang: snippet.id,
label: snippet.title,
source: snippet.content
});
}
pathItem['x-code-samples'] = code_samples;
}
}
rapidocEl.loadSpec(data);
});
});
</script>
</head>
<body>
<rapi-doc
id="rapidoc"
allow-spec-file-download="true"
spec-url=""
render-style="read"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mkluWhOrjthXKZFcRqOXCBNagUo5M+d5KDa4ttPCmoljwB+EMRbSoaqkBGUU8A7jkZaYtxDybCwohOWoV5Up0a75EUCXwWnhTAAKKh+3ZiPSBl6vGPYUmSdZJoLFUa+C00LB5gGwkWbDY8/eoTm5rux5OYRhIF4AtFdHx0Xh7LfJ/UE/jdJ/IBh1HDs0XQHmy+wDaqidz9Kh5PR5LRyZCDaxCJnmSD7oW9hjqoGJrs/cDNHwVNa7FHegmuzMLFIzjfix0jm3/wP48PMnSNDzPzc6YlAqnAnHfPkiW6I24F8ktB6GzwdgzE7hO6fPTQ3YO7lMaH8ONrMfj/va0lZ60WaG8AAAAASUVORK5CYII=" alt="logo" style="max-width: 150px; max-height: 50px">
<slot name="footer">
<p slot="footer" style="margin:0; padding:16px 36px; background-color:orangered; color:#fff; text-align:center;">
© 2024 SCTG. All rights reserved.
</p>
</slot>
</rapi-doc>
</body>
</html>
EOF
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/
- name: Publish CI binary (${{ matrix.target }})
continue-on-error: true
run: |
zip -r /tmp/${{ matrix.os }}_${{ matrix.target }}_${{ github.event.release.tag_name }}.zip target/${{ matrix.target }}/release/sctgdesk-api-server
- name: Upload Release Assets binaries for ${{ matrix.os }} ${{ matrix.target }}
uses: softprops/action-gh-release@v2
continue-on-error: true
with:
draft: true
tag_name: nightly
files: |
/tmp/${{ matrix.os }}_${{ matrix.target }}_${{ github.event.release.tag_name }}.zip
docs/openapi3.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Release Assets binaries for Ubuntu amd64
uses: softprops/action-gh-release@v2
continue-on-error: true
with:
files: |
docs/openapi3.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push to GitHub
continue-on-error: true
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add -v -f docs/openapi3.json docs/index.html docs/openapisnippet.min.js
git commit -m "Update GitHub Pages" docs/*
git push origin HEAD
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload docs directory
path: 'docs'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4