From a71be7ad0d5aa7b4ea379e9f99fcd6b96c522307 Mon Sep 17 00:00:00 2001 From: chevdor Date: Mon, 28 Jun 2021 18:50:44 +0200 Subject: [PATCH] test: add cumulus repo --- .github/workflows/cumulus.yml | 51 ++++++++++++++++++++++++++++++++++ .github/workflows/polkadot.yml | 5 ---- 2 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/cumulus.yml diff --git a/.github/workflows/cumulus.yml b/.github/workflows/cumulus.yml new file mode 100644 index 0000000..8d3cade --- /dev/null +++ b/.github/workflows/cumulus.yml @@ -0,0 +1,51 @@ +name: Build Polkadot Repo +on: + push: + branches: + - "*" + + workflow_dispatch: + inputs: + srtool_tag: + description: The SRTOOL tag to use + default: 1.53.0 + required: false + + schedule: + - cron: "00 04 * * 1" # 4AM weekly on mondays + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + chain: ["statemine", "statemint", "westmint", "rococo", "shell"] + + name: Build ${{ matrix.chain }} + steps: + + - uses: actions/checkout@v2 + with: + path: action + + - uses: actions/checkout@v2 + with: + repository: paritytech/cumulus + fetch-depth: 0 + path: repo + + - name: Srtool build + id: srtool_build + uses: ./action + with: + chain: ${{ matrix.chain }} + tag: ${{ github.event.inputs.srtool_tag }} + runtime_dir: polkadot-parachains/${{ matrix.chain }} + workdir: "${{ github.workspace }}/repo" + + - name: Summary + run: | + echo '${{ steps.srtool_build.outputs.json }}' | jq . | tee ${{ matrix.chain }}-srtool-digest.json + echo "Compact Runtime location : ${{ steps.srtool_build.outputs.wasm }}" + echo "Compressed Runtime location : ${{ steps.srtool_build.outputs.wasm_compressed }}" diff --git a/.github/workflows/polkadot.yml b/.github/workflows/polkadot.yml index dbc34b9..d92bb83 100644 --- a/.github/workflows/polkadot.yml +++ b/.github/workflows/polkadot.yml @@ -40,17 +40,12 @@ jobs: ls -al pwd - # - name: Go in the repo - # working-directory: ./repo - # run: pwd - - name: Srtool build id: srtool_build uses: ./action with: chain: ${{ matrix.chain }} tag: ${{ github.event.inputs.srtool_tag }} - # runtime_dir: repo/runtime/${{ matrix.chain }} workdir: "${{ github.workspace }}/repo" - name: Summary