Skip to content

Commit

Permalink
Fix legacy registry action (#86)
Browse files Browse the repository at this point in the history
* permanently copy shared resources in the runtime override source folder
* update checkout action version
  • Loading branch information
noandrea committed Mar 4, 2024
1 parent 60da1a6 commit 5fec12d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ on:
types: [opened, edited, synchronize]

jobs:

list-spec-versions:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
outputs:
spec_versions: ${{ steps.list-versions.outputs.spec_versions }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: List spec versions
Expand All @@ -37,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Find un-copyrighted files
Expand All @@ -55,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup editorconfig checker
Expand All @@ -80,7 +79,7 @@ jobs:
spec_version: ${{ fromJson(needs.list-spec-versions.outputs.spec_versions) }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: dorny/paths-filter@v2
Expand All @@ -98,6 +97,6 @@ jobs:
# if: steps.filter.outputs.edited == 'true' || steps.filter.outputs.shared == 'true'
# run: cd tracing/${{ matrix.spec_version }} && cargo test --release --all
- name: "Check wasm blob"
if: steps.filter.outputs.edited == 'true' || steps.filter.outputs.shared == 'true'
if: steps.filter.outputs.edited == 'true' || steps.filter.outputs.shared == 'true'
run: |
./scripts/check-tracing-runtime.sh ${{ matrix.spec_version }}
3 changes: 1 addition & 2 deletions .github/workflows/create-tracing-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ on:
required: false

jobs:

create-tracing-runtime:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: import runtime
run: |
./scripts/import-tracing-runtime.sh ${{ github.event.inputs.spec_version }} ${{ github.event.inputs.moonbeam_git_ref }}
Expand Down
5 changes: 5 additions & 0 deletions scripts/import-tracing-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@ cd ..
echo "Running ./scripts/update-tracing-runtime-lock.sh $SPEC_VERSION ..."
source ./scripts/update-tracing-runtime-lock.sh $SPEC_VERSION

echo "Format with cargo fmt"
pushd tracing/$SPEC_VERSION
cargo fmt
popd

echo "Done !"
5 changes: 1 addition & 4 deletions scripts/update-tracing-runtime-lock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ echo
cargo fetch
echo

echo "Removing shared directory in tracing/${VERSION}"
rm -rf shared

cd ../..
cd ../..

0 comments on commit 5fec12d

Please sign in to comment.