mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 00:31:07 +00:00
Merge branch 'master' into tadeohepperle/subxt-metadata-no-std
This commit is contained in:
@@ -17,6 +17,12 @@ runs:
|
|||||||
workflow: build-nodes.yml
|
workflow: build-nodes.yml
|
||||||
name: nightly-polkadot-binary
|
name: nightly-polkadot-binary
|
||||||
|
|
||||||
|
- name: decompress polkadot binary
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
tar -xzvf ./polkadot.tar.gz
|
||||||
|
cp ./target/release/polkadot ./polkadot
|
||||||
|
|
||||||
- name: Prepare binaries
|
- name: Prepare binaries
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -35,6 +35,17 @@ jobs:
|
|||||||
command: build
|
command: build
|
||||||
args: --release --manifest-path substrate/bin/node/cli/Cargo.toml
|
args: --release --manifest-path substrate/bin/node/cli/Cargo.toml
|
||||||
|
|
||||||
|
- name: build polkadot binary
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --release --manifest-path polkadot/Cargo.toml
|
||||||
|
|
||||||
|
- name: Strip binaries
|
||||||
|
run: |
|
||||||
|
cargo install cargo-strip
|
||||||
|
cargo strip
|
||||||
|
|
||||||
- name: upload substrate binary
|
- name: upload substrate binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
@@ -43,18 +54,17 @@ jobs:
|
|||||||
retention-days: 2
|
retention-days: 2
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: build polkadot binary
|
# Note: Uncompressed polkadot binary is ~124MB -> too large for git (max 100MB) without git lfs. Compressed it is only ~45MB
|
||||||
uses: actions-rs/cargo@v1
|
- name: compress polkadot binary
|
||||||
with:
|
run: |
|
||||||
command: build
|
tar -zcvf target/release/polkadot.tar.gz target/release/polkadot
|
||||||
args: --release --manifest-path polkadot/Cargo.toml
|
|
||||||
|
|
||||||
- name: upload polkadot binary
|
- name: upload polkadot binary
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: nightly-polkadot-binary
|
name: nightly-polkadot-binary
|
||||||
path: |
|
path: |
|
||||||
target/release/polkadot
|
target/release/polkadot.tar.gz
|
||||||
target/release/polkadot-execute-worker
|
target/release/polkadot-execute-worker
|
||||||
target/release/polkadot-prepare-worker
|
target/release/polkadot-prepare-worker
|
||||||
retention-days: 2
|
retention-days: 2
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# We run this (up-to-date) node locally to fetch metadata from it for the artifacts
|
# We run this (up-to-date) node locally to fetch metadata from it for the artifacts
|
||||||
- name: Use substrate and polkadot node binaries
|
- name: Use substrate and polkadot node binaries
|
||||||
uses: ./.github/workflows/actions/use-nodes
|
uses: ./.github/workflows/actions/use-nodes
|
||||||
@@ -45,9 +44,16 @@ jobs:
|
|||||||
- name: Delete substrate node binary
|
- name: Delete substrate node binary
|
||||||
run: rm ./substrate-node
|
run: rm ./substrate-node
|
||||||
|
|
||||||
|
- uses: actions/create-github-app-token@v1
|
||||||
|
id: app-token
|
||||||
|
with:
|
||||||
|
app-id: ${{ secrets.SUBXT_PR_MAKER_APP_ID }}
|
||||||
|
private-key: ${{ secrets.SUBXT_PR_MAKER_APP_KEY }}
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v6
|
uses: peter-evans/create-pull-request@v6
|
||||||
with:
|
with:
|
||||||
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
base: master
|
base: master
|
||||||
branch: update-artifacts
|
branch: update-artifacts
|
||||||
commit-message: Update Artifacts (auto-generated)
|
commit-message: Update Artifacts (auto-generated)
|
||||||
|
|||||||
Reference in New Issue
Block a user