-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (53 loc) · 1.74 KB
/
build-publish.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
name: Build and publish mixnode, gateway, network-requester
on:
workflow_dispatch:
inputs:
ref:
required: false
description: Branch or tag to checkout from `nymtech/nym` repository
default: develop
jobs:
build-publish:
runs-on: [ self-hosted, custom-linux ]
# Enable sccache via environment variable
env:
RUSTC_WRAPPER: /home/ubuntu/.cargo/bin/sccache
steps:
- name: Install Dependencies (Linux)
run: sudo apt-get update && sudo apt-get -y install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libudev-dev squashfs-tools protobuf-compiler
continue-on-error: true
- name: Check out repository code
uses: actions/checkout@v4
with:
repository: nymtech/nym
ref: ${{ inputs.ref }}
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Build all binaries
uses: actions-rs/cargo@v1
with:
command: build
args: --release --workspace
- name: nym-mixnode
uses: actions/upload-artifact@v3
with:
name: nym-mixnode
path: target/release/nym-mixnode
retention-days: 1
- name: nym-gateway
uses: actions/upload-artifact@v3
with:
name: nym-gateway
path: target/release/nym-gateway
retention-days: 1
- name: nym-network-requester
uses: actions/upload-artifact@v3
with:
name: nym-network-requester
path: target/release/nym-network-requester
retention-days: 1