-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.25 KB
/
pr-build-node.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
name: Compile node
on:
pull_request:
paths:
- '.github/actions/cargo-command/**'
- '.github/workflows/pr-build-node.yaml'
- 'node/**'
- 'primitives/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'rust-toolchain.toml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-node:
runs-on: [self-hosted, general]
strategy:
fail-fast: false
matrix:
include:
- profile: production
features: default
- profile: testnet
features: default
- profile: testnet
features: development
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build timenode
uses: ./.github/actions/cargo-command
env:
SKIP_WASM_BUILD: true
with:
package: timechain-node
profile: ${{ matrix.profile }}
features: ${{ matrix.features }}
- name: Upload timechain node
uses: actions/upload-artifact@v4
with:
name: timenode.${{ matrix.profile }}.${{ matrix.features }}
if-no-files-found: error
path: target/${{ matrix.profile }}/timechain-node