-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Xavier Lau <xavier@inv.cafe>
- Loading branch information
0 parents
commit 63e0d20
Showing
982 changed files
with
273,286 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.