mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 07:18:00 +00:00
merge master
This commit is contained in:
@@ -41,4 +41,4 @@ jobs:
|
||||
name: nightly-substrate-binary
|
||||
path: target/release/substrate-node
|
||||
retention-days: 2
|
||||
if-no-files-found: error
|
||||
if-no-files-found: error
|
||||
|
||||
@@ -5,7 +5,6 @@ on:
|
||||
# Run at 8am every day, well after the new binary is built
|
||||
- cron: "0 8 * * *"
|
||||
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
|
||||
+15
-15
@@ -1,25 +1,25 @@
|
||||
name: Rust
|
||||
|
||||
on:
|
||||
push:
|
||||
# Run jobs when commits are pushed to
|
||||
# master or release-like branches:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
# Run jobs for any external PR that wants
|
||||
# to merge to master, too:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
# Run jobs when commits are pushed to
|
||||
# master or release-like branches:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
# Run jobs for any external PR that wants
|
||||
# to merge to master, too:
|
||||
branches:
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: true
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
# Increase wasm test timeout from 20 seconds (default) to 1 minute.
|
||||
WASM_BINDGEN_TEST_TIMEOUT: 60
|
||||
CARGO_TERM_COLOR: always
|
||||
# Increase wasm test timeout from 20 seconds (default) to 1 minute.
|
||||
WASM_BINDGEN_TEST_TIMEOUT: 60
|
||||
|
||||
jobs:
|
||||
clippy:
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
name: Update Artifacts
|
||||
|
||||
on:
|
||||
workflow_dispatch: # Allows manual triggering
|
||||
schedule:
|
||||
- cron: "0 0 * * 1" # weekly on Monday at 00:00 UTC
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
check:
|
||||
name: Renew Artifacts
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# We run this (up-to-date) node locally to fetch metadata from it for the artifacts
|
||||
- name: Use substrate-node binary
|
||||
uses: ./.github/workflows/actions/use-substrate
|
||||
|
||||
- name: Install Rust stable toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: stable
|
||||
override: true
|
||||
|
||||
- name: Rust Cache
|
||||
uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
|
||||
|
||||
# This starts a substrate node and runs a few subxt cli child processes to fetch metadata from it and generate code.
|
||||
# In particular it generates:
|
||||
# - 4 metadata (*.scale) files in the `artifacts` directory
|
||||
# - a polkadot.rs file from the full metadata that is checked in integration tests
|
||||
# - a polkadot.json in the `artifacts/demo_chain_specs` directory
|
||||
- name: Fetch Artifacts
|
||||
run: cargo build --bin artifacts
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v5
|
||||
with:
|
||||
base: master
|
||||
branch: update-artifacts
|
||||
commit-message: Update Artifacts (auto-generated)
|
||||
branch-suffix: timestamp
|
||||
title: Update Artifacts (auto-generated)
|
||||
body: |
|
||||
This PR updates the artifacts by fetching fresh metadata from a substrate node.
|
||||
It also recreates the polkadot.rs file used in the integration tests.
|
||||
It was created automatically by a Weekly GitHub Action Cronjob.
|
||||
Reference in New Issue
Block a user