Skip to content

Commit

Permalink
Merge pull request #761 from gluwa/update-testnet-2.211.1
Browse files Browse the repository at this point in the history
Update testnet to 2.211.1
  • Loading branch information
nathanwhit committed Nov 9, 2022
2 parents 8f343cd + e366b0a commit 815ea28
Show file tree
Hide file tree
Showing 96 changed files with 6,209 additions and 3,485 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

jobs:
check-if-needed:
# To avoid endless loop in CI skip this job on the commit which
# auto-updates the weights and is generated further below.
if: ${{ github.event_name == 'pull_request' && github.triggering_actor != 'notaturkey' }}
runs-on: ubuntu-20.04
outputs:
needs-bench: ${{ steps.version-check.outputs.needs_bench }}
Expand Down Expand Up @@ -77,6 +80,7 @@ jobs:
fetch-depth: 10
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.CREDITCOIN_GITHUB_API_TOKEN }}

- name: Set env
run: |
Expand Down Expand Up @@ -122,10 +126,9 @@ jobs:
- name: Commit changes to current branch
uses: EndBug/add-and-commit@v9
with:
author_name: hardwareBenchmark
author_name: gluwa-bot
author_email: creditcoin@gluwa.com
message: 'Auto-update pallet weights'
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Prepare commit for PR against dev
run: |
Expand All @@ -140,7 +143,7 @@ jobs:
id: open_pr
uses: rematocorp/open-pull-request-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.CREDITCOIN_GITHUB_API_TOKEN }}
from-branch: auto-update-weights-for-dev-${{ github.sha }}
to-branch: dev
repository-owner: gluwa
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ jobs:
fi
echo "INFO: MINING_KEY=$MINING_KEY"
cargo run --release -- --dev --mining-key $MINING_KEY >~/creditcoin-node.log 2>&1 &
cargo run --release -- --dev --mining-key $MINING_KEY --monitor-nonce auto >~/creditcoin-node.log 2>&1 &
- name: Start local Ethereum node
run: |
Expand Down Expand Up @@ -243,6 +243,11 @@ jobs:
yarn build:types
yarn format
echo "========== DEBUG DEBUG DEBUG =========="
git status --short
git diff
echo "======================================="
if [ -n "$(git status --short)" ]; then
git diff
echo "::set-output name=git_diff::true"
Expand Down Expand Up @@ -270,7 +275,7 @@ jobs:
author_name: gluwa-bot
author_email: creditcoin@gluwa.com
message: "Auto-update creditcoin-js type definitions"
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.CREDITCOIN_GITHUB_API_TOKEN }}

- name: Upload logs
uses: actions/upload-artifact@v3
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/llvm-cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ jobs:
az storage blob upload-batch --account-name staticsitellvmhtml --auth-mode key -d "\$web" --destination-path $PR_NUMBER --overwrite -s ./target/llvm-cov
- name: Post comment to PR
uses: mshick/add-pr-comment@v1
if: env.GITHUB_TOKEN
uses: mshick/add-pr-comment@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CREDITCOIN_GITHUB_API_TOKEN }}
with:
message: ${{ steps.coverage.outputs.uncovered_lines }}
allow-repeats: false
Expand Down
40 changes: 39 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
- name: Build WASM runtime
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
with:
chain: "creditcoin"
runtime_dir: runtime
Expand Down Expand Up @@ -164,11 +164,49 @@ jobs:
docker push gluwa/creditcoin:latest
docker logout
build-creditcoin-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install -g yarn

- name: Figure out tag name
shell: bash
run: |
TAG_NAME=$(git describe --tag)
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
- name: Build creditcoin-js package
run: |
pushd creditcoin-js/
# version will match the git tag
echo "DEBUG: Tag is '${{ env.TAG_NAME }}"
sed -i 's/"version": ".*",/"version": "${{ env.TAG_NAME }}",/' package.json
yarn install && yarn pack
popd
- name: Upload binary
uses: actions/upload-artifact@v3
with:
path: 'creditcoin-js/creditcoin-js-v${{ env.TAG_NAME }}.tgz'
if-no-files-found: error

create-release:
runs-on: ubuntu-latest
needs:
- build-native-runtime
- build-wasm-runtime
- build-creditcoin-js
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.5.0
uses: chevdor/srtool-actions@v0.6.0
with:
chain: "creditcoin"
runtime_dir: runtime
Expand Down
66 changes: 33 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion creditcoin-js/creditcoin.json

Large diffs are not rendered by default.

Empty file modified creditcoin-js/get-metadata.sh
100644 → 100755
Empty file.
Loading

0 comments on commit 815ea28

Please sign in to comment.