-
Notifications
You must be signed in to change notification settings - Fork 59
55 lines (49 loc) · 1.71 KB
/
_build-production-runtime.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
---
# This workflow builds production version of aleph-runtime
name: Build production runtime
on:
workflow_call:
inputs:
ref:
description: 'git ref: hash, branch, tag to build production aleph-runtime from'
type: string
required: true
outputs:
aleph-runtime-artifact-name:
description: 'Name of artifact aleph-runtime'
value: ${{ jobs.main.outputs.aleph-runtime-artifact-name }}
jobs:
main:
name: Build
runs-on: [self-hosted, Linux, X64, large]
env:
RUST_BACKTRACE: full
RUSTC_WRAPPER: sccache
outputs:
aleph-runtime-artifact-name: ${{ steps.get-artifact-name.outputs.name }}
steps:
- name: Checkout aleph-node source code
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
fetch-depth: 0
- name: Call action get-ref-properties
id: get-ref-properties
uses: Cardinal-Cryptography/github-actions/get-ref-properties@v7
- name: Install Rust toolchain
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v7
with:
targets: wasm32-unknown-unknown
- name: Build production aleph-runtime
run: cargo build --profile production -p aleph-runtime
- name: get aleph-runtime artifact name
id: get-artifact-name
run: |
echo "name=aleph-production-runtime" >> $GITHUB_OUTPUT
- name: Upload release runtime to GH artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ steps.get-artifact-name.outputs.name }}
path: target/production/wbuild/aleph-runtime/aleph_runtime.compact.compressed.wasm
if-no-files-found: error
retention-days: 7