Skip to content

Commit dbfe539

Browse files
committed
move to solochain
1 parent 3f5ae7a commit dbfe539

38 files changed

+4958
-12126
lines changed

.github/actions/ubuntu-dependencies/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ runs:
55
using: "composite"
66
steps:
77
- name: Rust compilation prerequisites (Ubuntu)
8+
if: contains(matrix.os, 'ubuntu')
89
run: |
910
sudo apt update
1011
sudo apt install -y \

.github/workflows/ci.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
ci:
15+
build:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
@@ -27,8 +27,13 @@ jobs:
2727
- if: contains(matrix.os, 'macos')
2828
uses: ./.github/actions/macos-dependencies
2929

30+
- name: Build the template
31+
run: cargo build
32+
timeout-minutes: 90
33+
3034
- name: Run clippy
3135
run: |
36+
SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --workspace --quiet
3237
SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --workspace --quiet
3338
timeout-minutes: 30
3439

@@ -40,6 +45,33 @@ jobs:
4045
run: SKIP_WASM_BUILD=1 cargo doc --workspace --no-deps
4146
timeout-minutes: 15
4247

48+
run-node:
49+
runs-on: ${{ matrix.os }}
50+
strategy:
51+
matrix:
52+
os: [ubuntu-latest, macos-latest]
53+
steps:
54+
- uses: actions/checkout@v4
55+
56+
- if: contains(matrix.os, 'ubuntu')
57+
uses: ./.github/actions/free-disk-space
58+
- if: contains(matrix.os, 'ubuntu')
59+
uses: ./.github/actions/ubuntu-dependencies
60+
- if: contains(matrix.os, 'macos')
61+
uses: ./.github/actions/macos-dependencies
62+
63+
- name: Build the node individually in release mode
64+
run: cargo build --package solochain-template-node --release
65+
timeout-minutes: 90
66+
67+
- name: Make sure the node is producing blocks
68+
run: |
69+
./target/release/solochain-template-node --dev 2>&1 | tee out.txt &
70+
until curl -s '127.0.0.1:9944'; do sleep 5; done
71+
until cat out.txt | grep -s "Imported #2"; do sleep 5; done
72+
shell: bash
73+
timeout-minutes: 5
74+
4375
build-docker:
4476
runs-on: ubuntu-latest
4577
steps:
@@ -48,5 +80,5 @@ jobs:
4880
- uses: ./.github/actions/free-disk-space
4981

5082
- name: Build the Dockerfile
51-
run: docker build . -t polkadot-sdk-parachain-template
83+
run: docker build . -t polkadot-sdk-solochain-template
5284
timeout-minutes: 90

.github/workflows/pr-reminder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
issue_number: context.issue.number,
2121
owner: context.repo.owner,
2222
repo: context.repo.repo,
23-
body: 'Hello, this is an automatic reminder that any code changes should be made to [the source](https://github.com/paritytech/polkadot-sdk/tree/master/templates/parachain).'
23+
body: 'Hello, this is an automatic reminder that any code changes should be made to [the source](https://github.com/paritytech/polkadot-sdk/tree/master/templates/solochain).'
2424
})

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454
rustup component add rust-src
5555
5656
- name: Build the template
57-
run: cargo build --workspace --locked --profile production
57+
run: cargo build --locked --release
5858
timeout-minutes: 90
5959

6060
- name: Upload the binaries
6161
uses: softprops/action-gh-release@v2
6262
with:
6363
files: |
64-
target/production/parachain-template-node
65-
target/production/wbuild/parachain-template-runtime/parachain_template_runtime.compact.compressed.wasm
64+
target/release/solochain-template-node
65+
target/release/wbuild/solochain-template-runtime/solochain_template_runtime.compact.compressed.wasm

0 commit comments

Comments
 (0)