-
Notifications
You must be signed in to change notification settings - Fork 34
38 lines (37 loc) · 1.13 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
name: Test
on:
push:
branches: [main, next]
pull_request:
types: [opened, repoened, synchronize]
jobs:
build:
name: Build Client and CLI with Rust ${{matrix.toolchain}} on ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable, nightly]
os: [ubuntu]
steps:
- uses: actions/checkout@main
- name: Install Rust with ${{matrix.toolchain}} toolchain
run: rustup update --no-self-update ${{ matrix.toolchain }}
- name: make - build
run: make build
build-wasm:
name: Build Client with Rust ${{matrix.toolchain}} on ${{matrix.os}} for wasm
runs-on: ${{matrix.os}}-latest
strategy:
fail-fast: false
matrix:
toolchain: [stable, nightly]
os: [ubuntu]
steps:
- uses: actions/checkout@main
- name: Install Rust with ${{matrix.toolchain}} toolchain
run: rustup update --no-self-update ${{ matrix.toolchain }}
- name: Add wasm32-unknown-unknown target
run: rustup target add wasm32-unknown-unknown
- name: make - build-wasm
run: make build-wasm