Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debugging info #25

Merged
merged 7 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 0 additions & 72 deletions .github/workflows/cumulus.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
strategy:
fail-fast: false
matrix:
chain: ["polkadot", "kusama", "westend"]
chain: ["westend", "rococo"]

name: Build ${{ matrix.chain }}
steps:
Expand All @@ -44,19 +44,26 @@ jobs:
- name: Checkout repo under test
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
repository: paritytech/polkadot
repository: paritytech/polkadot-sdk
fetch-depth: 0
path: repo
path: sdk

- name: Srtool build
- name: Debug
run: |
ls -al
ls -al sdk
ls -al sdk/polkadot/runtime/${{ matrix.chain }}
- name: Srtool build for ${{ matrix.chain }}
id: srtool_build
uses: ./action
with:
image: ${{ github.event.inputs.srtool_image || env.DEFAULT_IMAGE }}
tag: ${{ github.event.inputs.srtool_tag }}
chain: ${{ matrix.chain }}
workdir: "${{ github.workspace }}/repo"
profile: "production"
workdir: sdk
runtime_dir: polkadot/runtime/${{ matrix.chain }}
profile: production

- name: Summary
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
polkadot
_actions
workflow
.vscode
21 changes: 11 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ runs:
echo "RUSTC_VERSION=$RUSTC_VERSION"
echo "SRTOOL_VERSION=$SRTOOL_VERSION"
echo "SRTOOL_LATEST=$RUSTC_VERSION"
echo ::endgroup
echo ::endgroup::

echo ::group::Environment setup
SRTOOL_TAG=${{ inputs.tag || env.SRTOOL_LATEST }}
echo "SRTOOL_TAG=$SRTOOL_TAG" >> $GITHUB_ENV
echo "SRTOOL_IMAGE=${{ inputs.image }}:$SRTOOL_TAG" >> $GITHUB_ENV
echo "WORKDIR=${{ inputs.workdir || github.workspace }}" >> $GITHUB_ENV
echo "WORKDIR=${{ github.workspace }}/${{ inputs.workdir }}" >> $GITHUB_ENV

RUNTIME_DIR=${{ inputs.runtime_dir}}
RUNTIME_DIR=${RUNTIME_DIR:-'runtime/'${{ inputs.chain}}}
RUNTIME_DIR=${{ inputs.runtime_dir }}
RUNTIME_DIR=${RUNTIME_DIR:-'runtime/'${{ inputs.chain }}}
echo "RUNTIME_DIR=$RUNTIME_DIR" >> $GITHUB_ENV

PACKAGE=${{ inputs.package }}
Expand All @@ -133,7 +133,7 @@ runs:
echo "PARACHAIN_PALLET_ID=$PARACHAIN_PALLET_ID" >> $GITHUB_ENV
echo "AUTHORIZE_UPGRADE_PREFIX=$AUTHORIZE_UPGRADE_PREFIX" >> $GITHUB_ENV

echo ::endgroup
echo ::endgroup::

- id: env_check
name: Checking Env
Expand All @@ -145,6 +145,7 @@ runs:
echo ℹ️ image: ${{ env.SRTOOL_IMAGE }}
echo ℹ️ chain: ${{ inputs.chain }}
echo ℹ️ package: ${{ env.PACKAGE }}
echo ℹ️ Github Workspace: ${{ github.workspace }}
echo ℹ️ workdir: ${{ env.WORKDIR }}
echo ℹ️ runtime_dir: ${{ env.RUNTIME_DIR }}
echo ℹ️ build_opts: ${{ env.BUILD_OPTS }}
Expand All @@ -154,15 +155,15 @@ runs:
echo ℹ️ .git folder: `ls -ald ${{ env.WORKDIR }}/.git`
echo ℹ️ Cargo.toml: `ls -al ${{ env.WORKDIR }}/Cargo.toml`

echo ::endgroup
echo ::endgroup::

- id: pulling_srtool
name: Build ${{ env.PACKAGE }} using ${{ env.SRTOOL_IMAGE }}
shell: bash
run: |
echo ::group::Pulling the srtool docker image: ${{ env.SRTOOL_IMAGE }}
docker pull ${{ env.SRTOOL_IMAGE }}
echo ::endgroup
echo ::endgroup::

- id: version
shell: bash
Expand All @@ -172,7 +173,7 @@ runs:
JSON=`$CMD`
echo $JSON | jq .
echo "version=$JSON" >> $GITHUB_OUTPUT
echo ::endgroup
echo ::endgroup::

- id: info
shell: bash
Expand All @@ -182,7 +183,7 @@ runs:
JSON=`$CMD`
echo $JSON | jq .
echo "info=$JSON" >> $GITHUB_OUTPUT
echo ::endgroup
echo ::endgroup::

- id: build
name: Build ${{ env.PACKAGE }} using ${{ env.SRTOOL_IMAGE }}
Expand Down Expand Up @@ -215,4 +216,4 @@ runs:
IPFS=`echo $JSON | jq -r .runtimes.compact.ipfs`
echo "ipfs=$IPFS" >> $GITHUB_OUTPUT
}
echo ::endgroup
echo ::endgroup::