Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Feb 5, 2025
1 parent aeea267 commit 71e85a2
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/subxt-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 71e85a2

Please sign in to comment.