1
- name : rust
2
- on :
3
- workflow_dispatch :
4
- push :
5
- branches :
6
- - main
7
- paths-ignore :
8
- - " **.md"
9
- pull_request :
10
- branches :
11
- - main
12
- paths-ignore :
13
- - " **.md"
14
-
15
- env :
16
- CARGO_TERM_COLOR : always
17
-
18
- jobs :
19
- build-imbue-collator :
20
- runs-on : ubuntu-latest
21
- steps :
22
- - name : Checkout sources
23
- uses : actions/checkout@v4
24
- with :
25
- submodules : recursive
26
-
27
- - name : Install minimal nightly Rust
28
- uses : actions-rs/toolchain@v1
29
- with :
30
- profile : minimal
31
- toolchain : nightly-2023-05-22
32
- target : wasm32-unknown-unknown
33
- override : true
34
-
35
- - name : Update submodules
36
- run : git submodule update --recursive --remote
37
-
38
- - name : Clean unused directories
39
- run : sudo rm -rf /usr/share/dotnet;sudo rm -rf /opt/ghc;sudo rm -rf "/usr/local/share/boost";sudo rm -rf "$AGENT_TOOLSDIRECTORY"
40
-
41
- - name : Install Protobuf
42
- run : sudo apt install protobuf-compiler
43
-
44
- - name : Run tests with benchmarks
45
- run : cargo test --features runtime-benchmarks
46
- clippy :
47
- runs-on : ubuntu-latest
48
- steps :
49
- - uses : actions/checkout@v4
50
- - name : Install Protobuf
51
- run : sudo apt install protobuf-compiler
52
- - name : Install minimal nightly Rust
53
- uses : actions-rs/toolchain@v1
54
- with :
55
- profile : minimal
56
- toolchain : nightly-2023-05-22
57
- target : wasm32-unknown-unknown
58
- override : true
59
- - name : Install clippy
60
- run : rustup component add clippy
61
- - name : Ensure executable
62
- run : chmod +x ./ci/jobs/clippy.sh
63
- - name : Run clippy
64
- run : ./ci/jobs/clippy.sh
65
- rustfmt :
66
- runs-on : ubuntu-latest
67
- steps :
68
- - uses : actions/checkout@v4
69
- - name : Install rustfmt
70
- run : rustup component add rustfmt
71
- - name : Ensure executable
72
- run : chmod +x ./ci/jobs/rustfmt.sh
73
- - name : Run rustfmt
74
- run : ./ci/jobs/rustfmt.sh
1
+ # name: rust
2
+ # on:
3
+ # workflow_dispatch:
4
+ # push:
5
+ # branches:
6
+ # - main
7
+ # paths-ignore:
8
+ # - "**.md"
9
+ # pull_request:
10
+ # branches:
11
+ # - main
12
+ # paths-ignore:
13
+ # - "**.md"
14
+ #
15
+ # env:
16
+ # CARGO_TERM_COLOR: always
17
+ #
18
+ # jobs:
19
+ # build-imbue-collator:
20
+ # runs-on: ubuntu-latest
21
+ # steps:
22
+ # - name: Checkout sources
23
+ # uses: actions/checkout@v4
24
+ # with:
25
+ # submodules: recursive
26
+ #
27
+ # - name: Install minimal nightly Rust
28
+ # uses: actions-rs/toolchain@v1
29
+ # with:
30
+ # profile: minimal
31
+ # toolchain: nightly-2023-05-22
32
+ # target: wasm32-unknown-unknown
33
+ # override: true
34
+ #
35
+ # - name: Update submodules
36
+ # run: git submodule update --recursive --remote
37
+ #
38
+ # - name: Clean unused directories
39
+ # run: sudo rm -rf /usr/share/dotnet;sudo rm -rf /opt/ghc;sudo rm -rf "/usr/local/share/boost";sudo rm -rf "$AGENT_TOOLSDIRECTORY"
40
+ #
41
+ # - name: Install Protobuf
42
+ # run: sudo apt install protobuf-compiler
43
+ #
44
+ # - name: Run tests with benchmarks
45
+ # run: cargo test --features runtime-benchmarks
46
+ # clippy:
47
+ # runs-on: ubuntu-latest
48
+ # steps:
49
+ # - uses: actions/checkout@v4
50
+ # - name: Install Protobuf
51
+ # run: sudo apt install protobuf-compiler
52
+ # - name: Install minimal nightly Rust
53
+ # uses: actions-rs/toolchain@v1
54
+ # with:
55
+ # profile: minimal
56
+ # toolchain: nightly-2023-05-22
57
+ # target: wasm32-unknown-unknown
58
+ # override: true
59
+ # - name: Install clippy
60
+ # run: rustup component add clippy
61
+ # - name: Ensure executable
62
+ # run: chmod +x ./ci/jobs/clippy.sh
63
+ # - name: Run clippy
64
+ # run: ./ci/jobs/clippy.sh
65
+ # rustfmt:
66
+ # runs-on: ubuntu-latest
67
+ # steps:
68
+ # - uses: actions/checkout@v4
69
+ # - name: Install rustfmt
70
+ # run: rustup component add rustfmt
71
+ # - name: Ensure executable
72
+ # run: chmod +x ./ci/jobs/rustfmt.sh
73
+ # - name: Run rustfmt
74
+ # run: ./ci/jobs/rustfmt.sh
0 commit comments