forked from trustwallet/wallet-core
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.3 KB
/
codegen-v2.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: Codegen-v2 Tests
on:
push:
branches: [ dev, master ]
pull_request:
branches: [ dev, master ]
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
test:
runs-on: ubuntu-24.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
tools/install-sys-dependencies-linux
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install Rust dependencies
run: |
tools/install-rust-dependencies
- name: Run codegen-v2 tests
run: |
cargo test --all
working-directory: codegen-v2
# Generate files for a blockchain.
# Please note the blockchain should not be implemented in Rust at the moment of running this step,
# otherwise consider either generating files for another blockchain or removing this step at all.
- name: Test codegen-v2 new-blockchain-rust
run: |
cargo run -- new-blockchain-rust iotex
working-directory: codegen-v2
# Check if `new-blockchain-rust` command has generated files that do not break project compilation.
- name: Check Rust compiles
run: |
cargo check --tests
working-directory: rust