-
Notifications
You must be signed in to change notification settings - Fork 0
167 lines (167 loc) · 5.31 KB
/
build-artifacts.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
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
name: build-artifacts
on:
push:
branches: [main]
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
toolchain: 1.78.0
- uses: Swatinem/rust-cache@v1
- uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: vsc/package-lock.json
node-version: 20
- name: Install just
uses: taiki-e/install-action@v2
with:
tool: just
- name: Install packages (Linux)
if: runner.os == 'Linux'
uses: awalsh128/[email protected]
with:
# Required for egui in reqlang-client
# https://github.com/emilk/egui/blob/master/.github/workflows/rust.yml#L23C7-L29C40
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
version: 1.0
execute_install_scripts: true
- name: Build Reqlang Binaries
run: just build
- name: Verify
run: xvfb-run -a just verify
docs:
runs-on: ubuntu-latest
needs: [verify]
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
toolchain: 1.78.0
- uses: Swatinem/rust-cache@v1
- uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: vsc/package-lock.json
node-version: 20
- name: Install just
uses: taiki-e/install-action@v2
with:
tool: just
- name: Install packages (Linux)
if: runner.os == 'Linux'
uses: awalsh128/[email protected]
with:
# Required for egui in reqlang-client
# https://github.com/emilk/egui/blob/master/.github/workflows/rust.yml#L23C7-L29C40
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
version: 1.0
execute_install_scripts: true
- name: Build Docs
run: just build-docs
- name: Generate No Jekyll File
run: cd target/doc && touch .nojekyll
- name: Upload Docs
uses: actions/upload-artifact@v3
with:
name: reqlang-docs
path: target/doc
- name: Deploy Docs To GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/doc
build:
runs-on: ubuntu-latest
needs: [verify]
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
toolchain: 1.78.0
- uses: Swatinem/rust-cache@v1
- uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: vsc/package-lock.json
node-version: 20
- name: Install just
uses: taiki-e/install-action@v2
with:
tool: just
- name: Install packages (Linux)
if: runner.os == 'Linux'
uses: awalsh128/[email protected]
with:
# Required for egui in reqlang-client
# https://github.com/emilk/egui/blob/master/.github/workflows/rust.yml#L23C7-L29C40
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev # libgtk-3-dev is used by rfd
version: 1.0
execute_install_scripts: true
- name: Build
run: just build_release
- name: Upload CLI Binary
uses: actions/upload-artifact@v3
with:
name: reqlang
path: target/release/reqlang
- name: Upload LSP Binary
uses: actions/upload-artifact@v3
with:
name: reqlang-lsp
path: target/release/reqlang-lsp
- name: Upload Desktop App
uses: actions/upload-artifact@v3
with:
name: reqlang-client
path: target/release/reqlang-client
- name: Upload VS Code Extension Artifact
uses: actions/upload-artifact@v3
with:
name: reqlang-0.1.0.vsix
path: vsc/out/reqlang-0.1.0.vsix
build-windows:
runs-on: windows-latest
needs: [verify]
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
toolchain: 1.78.0
- uses: Swatinem/rust-cache@v1
- uses: actions/setup-node@v3
with:
cache: npm
cache-dependency-path: vsc/package-lock.json
node-version: 20
- name: Install just
uses: taiki-e/install-action@v2
with:
tool: just
- name: Build
run: just build_release
- name: Upload CLI Binary
uses: actions/upload-artifact@v3
with:
name: reqlang.exe
path: target/release/reqlang.exe
- name: Upload LSP Binary
uses: actions/upload-artifact@v3
with:
name: reqlang-lsp.exe
path: target/release/reqlang-lsp.exe
- name: Upload Desktop App
uses: actions/upload-artifact@v3
with:
name: reqlang-client.exe
path: target/release/reqlang-client.exe