forked from hicommonwealth/edgeware-node
-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (38 loc) · 1.01 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
name: Build
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
- name: Install wasm32
uses: actions-rs/toolchain@v1
with:
target: wasm32-unknown-unknown
toolchain: nightly
- uses: actions/cache@v2
with:
path: target/
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
- name: Module tests
run: ./scripts/test.sh
- name: Build binary
run: cargo build --release
- name: Save binary
uses: actions/upload-artifact@v2
with:
name: edgeware
path: target/release/edgeware