-
Notifications
You must be signed in to change notification settings - Fork 107
62 lines (53 loc) · 1.52 KB
/
control.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
56
57
58
59
60
61
name: control
on:
push:
paths:
- "control/**"
branches:
- main
pull_request:
paths:
- "control/**"
jobs:
control:
runs-on: snowbridge-runner
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
RUSTFLAGS: -C debuginfo=1
timeout-minutes: 15
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 2
- uses: actions/cache@v1
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust
run: |
nix develop -c sh -c '
echo "Installing Rust nightly toolchain"
rustup default stable
rustup target add wasm32-unknown-unknown
rustup component add rust-src
rustup install --profile minimal $RUST_NIGHTLY_VERSION
rustup component add --toolchain $RUST_NIGHTLY_VERSION rustfmt
rustup show
'
- name: Build Paseo
run: |
nix develop -c sh -c 'cd control && cargo build --features paseo'
- name: Build Polkadot
run: |
nix develop -c sh -c 'cd control && cargo build --features polkadot'
- name: Build Westend
run: |
nix develop -c sh -c 'cd control && cargo build --features westend'