forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5,044 changed files
with
370,486 additions
and
159,789 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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
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
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,33 @@ | ||
[compression] | ||
type = "zstd" | ||
|
||
[compression.zstd] | ||
compressionLevel = 3 | ||
|
||
[general] | ||
jobNameVariable = "CI_JOB_NAME" | ||
jobsBlackList = [] | ||
logLevel = "warn" | ||
threadsCount = 6 | ||
|
||
[cache] | ||
extraEnv = ["RUNTIME_METADATA_HASH"] | ||
|
||
[metrics] | ||
enabled = true | ||
pushEndpoint = "placeholder" | ||
|
||
[metrics.extraLabels] | ||
environment = "production" | ||
job_name = "$CI_JOB_NAME" | ||
project_name = "$CI_PROJECT_PATH" | ||
|
||
[storage] | ||
type = "s3" | ||
|
||
[storage.s3] | ||
accessKeyId = "placeholder" | ||
bucketName = "placeholder" | ||
concurrency = 10 | ||
endpointUrl = "placeholder" | ||
secretAccessKey = "placeholder" |
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,29 @@ | ||
[compression] | ||
type = "zstd" | ||
|
||
[compression.zstd] | ||
compressionLevel = 3 | ||
|
||
[general] | ||
jobNameVariable = "CI_JOB_NAME" | ||
jobsBlackList = [] | ||
logLevel = "warn" | ||
threadsCount = 6 | ||
|
||
[cache] | ||
extraEnv = ["RUNTIME_METADATA_HASH"] | ||
|
||
[metrics] | ||
enabled = true | ||
pushEndpoint = "placeholder" | ||
|
||
[metrics.extraLabels] | ||
environment = "production" | ||
job_name = "$CI_JOB_NAME" | ||
project_name = "$CI_PROJECT_PATH" | ||
|
||
[storage] | ||
type = "gcs" | ||
|
||
[storage.gcs] | ||
bucketName = "parity-ci-forklift" |
Validating CODEOWNERS rules …
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
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,22 @@ | ||
name: 'cargo check runtimes' | ||
description: 'Runs `cargo check` for every directory in provided root.' | ||
inputs: | ||
root: | ||
description: "Root directory. Expected to contain several cargo packages inside." | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check | ||
shell: bash | ||
run: | | ||
mkdir -p ~/.forklift | ||
cp .forklift/config.toml ~/.forklift/config.toml | ||
cd ${{ inputs.root }} | ||
for directory in $(echo */); do | ||
echo "_____Running cargo check for ${directory} ______"; | ||
cd ${directory}; | ||
pwd; | ||
SKIP_WASM_BUILD=1 forklift cargo check --locked; | ||
cd ..; | ||
done |
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,36 @@ | ||
name: 'install gh' | ||
description: 'Install the gh cli in a debian based distro and switches to the PR branch.' | ||
inputs: | ||
pr-number: | ||
description: "Number of the PR" | ||
required: true | ||
GH_TOKEN: | ||
description: "GitHub token" | ||
required: true | ||
outputs: | ||
branch: | ||
description: 'Branch name for the PR' | ||
value: ${{ steps.branch.outputs.branch }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Instal gh cli | ||
shell: bash | ||
# Here it would get the script from previous step | ||
run: | | ||
(type -p wget >/dev/null || (apt update && apt-get install wget -y)) | ||
mkdir -p -m 755 /etc/apt/keyrings | ||
wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null | ||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null | ||
apt update | ||
apt install gh -y | ||
git config --global --add safe.directory '*' | ||
- run: gh pr checkout ${{ inputs.pr-number }} | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.GH_TOKEN }} | ||
- name: Export branch name | ||
shell: bash | ||
run: echo "branch=$(git rev-parse --abbrev-ref HEAD)" >> "$GITHUB_OUTPUT" | ||
id: branch |
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,15 @@ | ||
# How to use | ||
|
||
```yml | ||
set-image: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- id: set_image | ||
run: cat .github/env >> $GITHUB_OUTPUT | ||
- name: Install dependencies | ||
uses: ./.github/actions/set-up-mac | ||
with: | ||
IMAGE: ${{ steps.set-image.outputs.IMAGE }} | ||
``` |
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,43 @@ | ||
name: "Set up rust on mac" | ||
description: "Install the required tools for Mac runners" | ||
inputs: | ||
IMAGE: | ||
description: "Rust docker image" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install with Hombrew | ||
shell: bash | ||
run: brew install protobuf rustup openssl pkg-config zlib xz zstd llvm jq curl gcc make cmake | ||
- name: Set version | ||
shell: bash | ||
run: | | ||
VERSION=$(echo $IMAGE | sed -E 's/.*:bullseye-([^-]+)-.*/\1/') | ||
echo $VERSION | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
NIGHTLY=$(echo $IMAGE | sed -E 's/.*([0-9]{4}-[0-9]{2}-[0-9]{2}).*/\1/') | ||
echo $NIGHTLY | ||
echo "NIGHTLY=$NIGHTLY" >> $GITHUB_ENV | ||
env: | ||
IMAGE: ${{ inputs.IMAGE }} | ||
|
||
- name: Install rustup | ||
shell: bash | ||
run: | | ||
rustup-init -y | ||
rustup install $VERSION | ||
rustup default $VERSION | ||
rustup toolchain install "nightly-${NIGHTLY}" | ||
- name: MacOS Deps | ||
shell: bash | ||
run: | | ||
rustup target add wasm32-unknown-unknown --toolchain $VERSION | ||
rustup component add rust-src rustfmt clippy --toolchain $VERSION | ||
- name: Check Rust | ||
shell: bash | ||
run: | | ||
rustup show | ||
rustup +nightly show |
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,9 @@ | ||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "1...100" | ||
status: | ||
project: | ||
default: | ||
target: 1.0 | ||
threshold: 2.0 |
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
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 @@ | ||
IMAGE="docker.io/paritytech/ci-unified:bullseye-1.77.0-2024-04-10-v202407161507" |
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 @@ | ||
../docs/contributor/PULL_REQUEST_TEMPLATE.md |
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
Oops, something went wrong.