-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,17 +32,35 @@ jobs: | |
cargo install [email protected] --locked | ||
echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||
- name: Lookup previous runtime release build | ||
id: previous-runtime | ||
run: | | ||
COMMIT=`git rev-list -n 1 'runtime-${{ github.event.inputs.last_spec_version }}'` | ||
PREVIOUS_RUNTIME_BUILD=$(gh run -R moonbeam-foundation/moonbeam list -w Build --limit=500 --json databaseId,status,conclusion,headSha --jq ".[] | select(.headSha == \"$COMMIT\" and .status == \"completed\" and .conclusion == \"success\") | .databaseId" | head -1) | ||
echo "Latest build for runtime-${{ github.event.inputs.last_spec_version }}: $PREVIOUS_RUNTIME_BUILD" | ||
echo "PREVIOUS_RUNTIME_BUILD=$PREVIOUS_RUNTIME_BUILD" >> $GITHUB_OUTPUT | ||
- name: Lookup previous runtime release build | ||
- name: Lookup next runtime release build | ||
id: next-runtime | ||
run: | | ||
COMMIT=`git rev-list -n 1 'runtime-${{ github.event.inputs.spec_version }}'` | ||
RUNTIME_BUILD=$(gh run -R moonbeam-foundation/moonbeam list -w Build --limit=100 --json databaseId,status,conclusion,headSha --jq ".[] | select(.headSha == \"$COMMIT\" and .status == \"completed\" and .conclusion == \"success\") | .databaseId" | head -1) | ||
echo "Latest build for runtime-${{ github.event.inputs.spec_version }}: $RUNTIME_BUILD" | ||
echo "NEXT_RUNTIME_BUILD=$RUNTIME_BUILD" >> $GITHUB_OUTPUT | ||
- name: "Download previous runtime release binary" | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: moonbeam | ||
path: previous-runtime-release | ||
merge-multiple: true | ||
github-token: ${{ github.token }} | ||
run-id: ${{ steps.previous-runtime.outputs.PREVIOUS_RUNTIME_BUILD }} | ||
- name: "Download next runtime release binary" | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: moonbeam | ||
path: next-runtime-release | ||
merge-multiple: true | ||
github-token: ${{ github.token }} | ||
run-id: ${{ steps.next-runtime.outputs.NEXT_RUNTIME_BUILD }} | ||
- name: Download binaries for each runtime | ||
run: | | ||
gh run -R moonbeam-foundation/moonbeam download $PREVIOUS_RUNTIME_BUILD -n moonbeam --dir previous-runtime-release | ||
|
@@ -87,6 +105,9 @@ jobs: | |
run: | | ||
mkdir -p runtime-diffs/${{ matrix.runtime }} | ||
subxt diff -a ws://127.0.0.1:9911 ws://127.0.0.1:9977 | sed 's/\x1b\[[0-9;]*m//g' > runtime-diffs/${{ matrix.runtime }}/${{ github.event.inputs.spec_version }}.txt | ||
if [ $? -ne 0 ]; then | ||
exit 1; | ||
fi | ||
- name: Stop Node Services | ||
if: always() | ||
run: | | ||
|