Skip to content

Commit

Permalink
Switch to monorepo (#69)
Browse files Browse the repository at this point in the history
* Switch to monorepo
* Fix working-directory
* Add fellowship runtimes
* Fix path for collectives
* Remove Polkadot and Kusama and add the fellowship runtimes
  • Loading branch information
chevdor authored Sep 15, 2023
1 parent f57d766 commit 5101648
Show file tree
Hide file tree
Showing 11 changed files with 212 additions and 59 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/manual-acala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
chain: ["karura"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
repository: AcalaNetwork/Acala
ref: ${{ github.event.inputs.ref }}
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.7.0
uses: chevdor/srtool-actions@v0.8.0
with:
chain: ${{ matrix.chain }}
tag: ${{ github.event.inputs.srtool_tag }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/manual-cumulus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ jobs:
runtime: shell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
repository: paritytech/cumulus
repository: paritytech/polkadot-sdk
ref: ${{ github.event.inputs.ref }}
fetch-depth: 0

- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.7.0
uses: chevdor/srtool-actions@v0.8.0
with:
chain: ${{ matrix.runtime }}
tag: ${{ github.event.inputs.srtool_tag }}
runtime_dir: parachains/runtimes/${{ matrix.category }}/${{ matrix.runtime }}
runtime_dir: cumulus/parachains/runtimes/${{ matrix.category }}/${{ matrix.runtime }}

- name: Summary
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual-fellow-runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
required: false
ref:
description: The ref to be used for the repo
default: master
default: main
required: false
schedule:
- cron: "00 04 * * 1"
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
chain: bridge-hub-polkadot

# System parachains / Collectives
- runtime_dir: system-parachains/collectives/collectives/polkadot
- runtime_dir: system-parachains/collectives/collectives-polkadot
runtime: collectives-polkadot-runtime
chain: collectives-polkadot

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual-moonbeam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
chain: ["moonriver"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
repository: PureStake/moonbeam
ref: ${{ github.event.inputs.ref }}
fetch-depth: 0

- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.7.0
uses: chevdor/srtool-actions@v0.8.0
with:
chain: ${{ matrix.chain }}
tag: ${{ github.event.inputs.srtool_tag }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/manual-polkadot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
chain: ["polkadot", "kusama", "westend"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
repository: paritytech/polkadot
repository: paritytech/polkadot-sdk
ref: ${{ github.event.inputs.ref }}
fetch-depth: 0

- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.7.0
uses: chevdor/srtool-actions@v0.8.0
with:
chain: ${{ matrix.chain }}
tag: ${{ github.event.inputs.srtool_tag }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manual-shiden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
chain: ["shiden"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
repository: AstarNetwork/Astar
ref: ${{ github.event.inputs.ref }}
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.7.0
uses: chevdor/srtool-actions@v0.8.0
with:
chain: ${{ matrix.chain }}
tag: ${{ github.event.inputs.srtool_tag }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ on:
required: false
chain:
description: The chain to use
default: node-template
default: westend-runtime
required: false
package:
description: The package to be used
default: node-template-runtime
default: westend-runtime
required: true
repository:
description: The repository to be used
default: paritytech/substrate
default: paritytech/polkadot-sdk
required: true
runtime_dir:
description: The runtime_dir to be used
default: bin/node-template/runtime/
default: polkadot/runtime/westend
required: true
ref:
description: The ref to be used for the repo
Expand All @@ -39,15 +39,15 @@ jobs:
name: Build ${{ github.event.inputs.repository }}/${{ github.event.inputs.package }} ${{ github.event.inputs.ref }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
repository: ${{ github.event.inputs.repository }}
ref: ${{ github.event.inputs.ref }}
fetch-depth: 0

- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.7.0
uses: chevdor/srtool-actions@v0.8.0
with:
chain: ${{ github.event.inputs.chain }}
package: ${{ github.event.inputs.package }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/quick-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: false
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
needs: build
continue-on-error: false
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down Expand Up @@ -137,19 +137,19 @@ jobs:
docker load -i srtool.tar.gz
docker images --digests
- name: Check out the Polkadot repo
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Check out the Polkadot SDK repo
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
repository: paritytech/polkadot
repository: paritytech/polkadot-sdk
ref: ${{ github.event.inputs.ref }}
fetch-depth: 0
path: polkadot
path: sdk

- name: Run srtool info
env:
PACKAGE: ${{ matrix.chain }}-runtime
RUNTIME_DIR: runtime/${{ matrix.chain }}
working-directory: polkadot
RUNTIME_DIR: polkadot/runtime/${{ matrix.chain }}
working-directory: sdk
run: |
INFO=$(docker run --rm -i \
-e PACKAGE=$PACKAGE \
Expand All @@ -167,8 +167,8 @@ jobs:
- name: Debug information
env:
PACKAGE: ${{ matrix.chain }}-runtime
RUNTIME_DIR: runtime/${{ matrix.chain }}
working-directory: polkadot
RUNTIME_DIR: polkadot/runtime/${{ matrix.chain }}
working-directory: sdk
run: |
echo "::group::Runtimes"
ls -al runtime || true
Expand All @@ -189,8 +189,8 @@ jobs:
id: srtool_build
env:
PACKAGE: ${{ matrix.chain }}-runtime
RUNTIME_DIR: runtime/${{ matrix.chain }}
working-directory: polkadot
RUNTIME_DIR: polkadot/runtime/${{ matrix.chain }}
working-directory: sdk
run: |
CMD="docker run --rm -i \
-e PACKAGE=$PACKAGE \
Expand Down Expand Up @@ -221,7 +221,7 @@ jobs:
echo "::endgroup::"
- name: Summary for ${{ matrix.chain }}
working-directory: polkadot
working-directory: sdk
run: |
echo "::group::JSON digest"
echo $JSON | jq . | tee ${{ matrix.chain }}-srtool-digest.json
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: false
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0

- name: Build image
run: |
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
release_url: ${{ steps.create-release.outputs.html_url }}
asset_upload_url: ${{ steps.create-release.outputs.upload_url }}
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
fetch-depth: 0
- name: Get Release Version
Expand Down
Loading

0 comments on commit 5101648

Please sign in to comment.