-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from paseo-network/release/1.3.1-runtime
Update runtime v1.3.1
- Loading branch information
Showing
264 changed files
with
28,022 additions
and
10,878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Generate Chain Specs | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag_version: | ||
description: 'Tag version for the release' | ||
required: true | ||
type: string | ||
workflow_call: | ||
inputs: | ||
tag_version: | ||
description: 'Tag version for the release' | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
generate-chain-specs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y git protobuf-compiler | ||
- name: Setup Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.77.0 | ||
target: wasm32-unknown-unknown | ||
components: rust-src | ||
override: true | ||
|
||
- name: Add rust-src | ||
run: rustup component add rust-src --toolchain 1.77.0-x86_64-unknown-linux-gnu | ||
|
||
- name: Build chain-spec-generator | ||
run: cargo build --package chain-spec-generator --features=fast-runtime --release | ||
|
||
- name: Generate chain specs | ||
run: | | ||
mkdir -p chain-specs/local | ||
PACKAGES=( | ||
"paseo-local" | ||
"paseo-dev" | ||
"asset-hub-paseo-local" | ||
"bridge-hub-paseo-local" | ||
"people-paseo-local" | ||
"coretime-paseo-local" | ||
) | ||
for pkg in "${PACKAGES[@]}"; do | ||
./target/release/chain-spec-generator "$pkg" --raw > "chain-specs/local/$pkg.json" | ||
echo "Generated chain-specs/local/$pkg.json" | ||
done | ||
- name: Setup Git | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PASEO_RUNTIME_CI_PAT }} | ||
|
||
- name: Commit changes | ||
run: | | ||
git add chain-specs/local/*.json | ||
if git diff --staged --quiet; then | ||
echo "No changes detected in chain specs. Skipping commit." | ||
else | ||
COMMIT_MESSAGE="Update chain specs for version ${{ inputs.tag_version }}" | ||
git commit -m "$COMMIT_MESSAGE" | ||
git push | ||
echo "Changes committed and pushed successfully." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.