forked from commune-ai/subspace
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (40 loc) · 1.34 KB
/
build.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
name: Build and publish
on:
push:
tags: 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Install Rust toolchain
run: |
rustup set profile minimal
rustup show
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: 3.20.1
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build runtime
run: |
cargo build --release --timings --package node-subspace-runtime
export SHA256SUM=$(sha256sum target/release/wbuild/node-subspace-runtime/node_subspace_runtime.compact.compressed.wasm | cut -d ' ' -f1)
echo Hash of compact and compressed WASM: $SHA256SUM
mkdir out
mv target/release/wbuild/node-subspace-runtime/node_subspace_runtime.compact.compressed.wasm out/
touch out/$SHA256SUM
- uses: actions/upload-artifact@v4
with:
name: node_subspace_runtime.compact.compressed
path: out/
if-no-files-found: error
overwrite: true
- uses: actions/upload-artifact@v4
with:
name: node-subspace-runtime-timings
path: target/cargo-timings/cargo-timing.html
overwrite: true