Skip to content

Commit

Permalink
Example
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Lau <xavier@inv.cafe>
  • Loading branch information
aurexav committed Jan 13, 2023
0 parents commit 63e0d20
Show file tree
Hide file tree
Showing 982 changed files with 273,286 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset=utf-8
end_of_line=lf
indent_size=tab
indent_style=tab
insert_final_newline=true
max_line_length=100
tab_width=4
trim_trailing_whitespace=true

[*.py]
charset=utf-8
indent_size=4
indent_style=space

[*.{sh,yml,yaml}]
indent_size=2
indent_style=space
tab_width=8
76 changes: 76 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Checks
on:
pull_request:
branches:
- main

jobs:
preset:
name: Build and upload Polkadot
runs-on: ubuntu-latest
steps:
# I comment these for faster demonstration.
# You can fork and uncomment these things.
# Don't forget to remove the `Download` part.
#
# - name: Setup build environment
# run: sudo apt install -y protobuf-compiler
# - name: Fetch latest code
# uses: actions/checkout@v3
# - name: Build
# run: |
# cargo build --release --locked
# mv target/release/polkadot .
- name: Download
run: |
curl -LO https://github.com/paritytech/polkadot/releases/download/v0.9.36/polkadot
- name: Upload
uses: actions/upload-artifact@v2
with:
name: polkadot
path: polkadot

features-checks:
name: Task check features
strategy:
matrix:
runtime: [runtime/polkadot, runtime/kusama]
runs-on: ubuntu-latest
steps:
- name: Check ${{ matrix.runtime }}
uses: hack-ink/subalfred-check-features-action@v0.1.5
with:
path: ${{ matrix.runtime }}

runtime-checks:
name: Task check runtimes
strategy:
matrix:
target:
[
{ chain: polkadot-dev, compare-with: "https://rpc.polkadot.io" },
{
chain: kusama-dev,
compare-with: "https://kusama-rpc.polkadot.io",
},
]
needs: [preset]
runs-on: ubuntu-latest
steps:
- name: Check ${{ matrix.target.chain }}
uses: hack-ink/subalfred-check-runtime-action@v0.1.7
with:
uploaded-artifact: polkadot
chain: ${{ matrix.target.chain }}
compare-with: ${{ matrix.target.compare-with }}

checks-cleaning:
name: Task checks cleaning
if: always()
needs: [features-checks, runtime-checks]
steps:
- name: Clean artifacts
uses: geekyeggo/delete-artifact@v1
with:
name: polkadot
runs-on: ubuntu-latest
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# System
.DS_Store

# Integrated development environment
.fleet
.idea
.vscode

# Package Manager
## Cargo
target
Loading

0 comments on commit 63e0d20

Please sign in to comment.