-
-
Notifications
You must be signed in to change notification settings - Fork 27
42 lines (32 loc) · 937 Bytes
/
binaries.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
name: Binaries
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install libsodium-dev libsqlite3-dev libzstd-dev
- name: Build
run: cargo build --verbose --release
- name: Strip binary
run: strip target/release/rebuild{erd,ctl,erd-worker}
- name: Archive executable (rebuilderd)
uses: actions/upload-artifact@v4
with:
name: rebuilderd
path: target/release/rebuilderd
- name: Archive executable (rebuildctl)
uses: actions/upload-artifact@v4
with:
name: rebuildctl
path: target/release/rebuildctl
- name: Archive executable (rebuilderd-worker)
uses: actions/upload-artifact@v4
with:
name: rebuilderd-worker
path: target/release/rebuilderd-worker