Skip to content

Commit 3c8c04c

Browse files
authored
bump substrate to polkadot-v0.9.2. + add GA + re-add branch ids (#116)
* bump paritytech/substrate@1d7f6e1. Closes #117. * re-introduce branch identifiers * Add GitHub actions #### Rationale Branch Ids: Polkadot references substrate dependencies including `branch = "master"`. Hence, any rust crate that uses substrate AND Polkadot deps must use the branch-id because Cargo can't identify them as the same even if the same substrate revision is referenced. This is the api-client branch that is currently used with the encointer-client.
1 parent 6df0771 commit 3c8c04c

File tree

17 files changed

+7196
-445
lines changed

17 files changed

+7196
-445
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Build & Test & Clippy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: init-rust-target
19+
run: rustup target add wasm32-unknown-unknown
20+
- name: api-client
21+
run: cargo build
22+
- name: keystore
23+
run: |
24+
cd client-keystore
25+
cargo build
26+
- name: examples
27+
run: cargo build --examples
28+
- name: test_no_std
29+
run: |
30+
cd test_no_std
31+
cargo build
32+
- name: tutorial
33+
run: |
34+
cd tutorials/api-client-tutorial
35+
cargo build
36+
37+
unit-tests:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v2
41+
- name: init-rust-target
42+
run: rustup target add wasm32-unknown-unknown
43+
- name: api-client
44+
run: cargo test
45+
- name: keystore
46+
run: |
47+
cd client-keystore
48+
cargo test
49+
50+
clippy:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- name: init-rust
55+
run: |
56+
rustup target add wasm32-unknown-unknown
57+
rustup component add clippy
58+
- name: api-client
59+
run: cargo clippy
60+
- name: keystore
61+
run: |
62+
cd client-keystore
63+
cargo clippy
64+
- name: examples
65+
run: cargo clippy --examples
66+
- name: test_no_std
67+
run: |
68+
cd test_no_std
69+
cargo clippy
70+
- name: tutorial
71+
run: |
72+
cd tutorials/api-client-tutorial
73+
cargo clippy

0 commit comments

Comments
 (0)