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

🐛 arc-runner patch 1.1 #1241

Merged
merged 7 commits into from
Aug 1, 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
22 changes: 16 additions & 6 deletions .github/workflows/metadata_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
start-checks:
timeout-minutes: 120
runs-on: runtime
shell: bash
container:
image: ubuntu:20.04
strategy:
Expand Down Expand Up @@ -47,23 +46,24 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-${{ hashFiles('**/Cargo.lock') }}
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-
cargo-registry-
- name: cache sccache
uses: actions/cache@v2
continue-on-error: false
with:
path: /home/runner/.cache/sccache
path: ~/.cache/sccache
key: sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
sccache-
- name: start sccache server
run: sccache --start-server
- name: init
shell: bash
run: |
apt update
apt install -y pkg-config libssl-dev protobuf-compiler curl
apt install -y pkg-config libssl-dev protobuf-compiler curl build-essential clang git
protoc --version
apt remove -y '^dotnet-.*'
apt remove -y '^mongodb-.*'
Expand All @@ -79,12 +79,22 @@ jobs:
rustup toolchain install nightly-2023-03-03
rustup default nightly-2023-03-03
rustup target add wasm32-unknown-unknown
- name: cache cargo build
uses: actions/cache@v2
with:
path: |
./target
key: cargo-build-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-build-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
cargo-build-
- name: Build New Binary
env:
RUST_BACKTRACE: full
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 2G
SCCACHE_DIR: /home/runner/.cache/sccache
SCCACHE_DIR: ~/.cache/sccache
shell: bash
run: |
source ${HOME}/.cargo/env
RUSTC_BOOTSTRAP=1 cargo build --release
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/publish_draft_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
get-rust-versions:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: runtime
shell: bash
container:
image: paritytech/ci-linux:production
outputs:
Expand All @@ -30,7 +29,6 @@ jobs:
timeout-minutes: 180
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: runtime
shell: bash
env:
CARGO_TERM_COLOR: always
container:
Expand Down Expand Up @@ -78,7 +76,6 @@ jobs:
timeout-minutes: 180
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: runtime
shell: bash
container:
image: ubuntu:20.04
env:
Expand Down Expand Up @@ -112,16 +109,17 @@ jobs:
uses: actions/cache@v2
continue-on-error: false
with:
path: /home/runner/.cache/sccache
path: ~/.cache/sccache
key: sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
sccache-
- name: start sccache server
run: sccache --start-server
- name: init
shell: bash
run: |
apt update
apt install -y pkg-config libssl-dev protobuf-compiler curl
apt install -y pkg-config libssl-dev protobuf-compiler curl build-essential clang git
protoc --version
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
Expand All @@ -132,11 +130,12 @@ jobs:
rustup install 1.69.0
rustup target add wasm32-unknown-unknown --toolchain 1.69.0
- name: build
shell: bash
env:
RUST_BACKTRACE: full
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 2G
SCCACHE_DIR: /home/runner/.cache/sccache
SCCACHE_DIR: ~/.cache/sccache
run: |
source ${HOME}/.cargo/env
RUSTC_BOOTSTRAP=1 cargo +1.69.0 build --profile production --verbose
Expand All @@ -163,7 +162,6 @@ jobs:
# THE FOLLOWING HAPPENS ONLY WHEN TAGGED WITH A vX.Y.Z TAG
create-draft-release:
runs-on: runtime
shell: bash
needs: [build-runtimes]
outputs:
release_url: ${{ steps.create-release.outputs.html_url }}
Expand All @@ -181,7 +179,6 @@ jobs:
draft: true
publish-runtimes:
runs-on: runtime
shell: bash
needs: create-draft-release
strategy:
matrix:
Expand Down Expand Up @@ -247,7 +244,6 @@ jobs:
asset_content_type: application/json
publish-node:
runs-on: runtime
shell: bash
needs: [build-node-current, create-draft-release]
outputs:
download_url: ${{ steps.upload-manta.outputs.browser_download_url }}
Expand All @@ -268,7 +264,6 @@ jobs:
asset_content_type: application/octet-stream
brag:
runs-on: runtime
shell: bash
needs: [publish-runtimes, publish-node]
if: startsWith(github.ref, 'refs/tags')
steps:
Expand Down
25 changes: 18 additions & 7 deletions .github/workflows/run_linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
start-checks:
timeout-minutes: 120
runs-on: runtime
shell: bash
container:
image: ubuntu:20.04
steps:
Expand All @@ -40,14 +39,14 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-${{ hashFiles('**/Cargo.lock') }}
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-
cargo-registry-
- name: cache sccache
uses: actions/cache@v2
continue-on-error: false
with:
path: /home/runner/.cache/sccache
path: ~/.cache/sccache
key: sccache-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
sccache-
Expand All @@ -56,9 +55,10 @@ jobs:
- name: init rust toolchain
# NOTE: We use nightly Rust only to get nightly fmt & clippy
# TODO: use nightly after https://github.com/clap-rs/clap/issues/4733 fixed.
shell: bash
run: |
apt update
apt install -y pkg-config libssl-dev protobuf-compiler curl
apt install -y pkg-config libssl-dev protobuf-compiler curl build-essential clang git
protoc --version
curl -s https://sh.rustup.rs -sSf | sh -s -- -y
source ${HOME}/.cargo/env
Expand All @@ -70,18 +70,29 @@ jobs:
RUST_BACKTRACE: full
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 2G
SCCACHE_DIR: /home/runner/.cache/sccache
SCCACHE_DIR: ~/.cache/sccache
shell: bash
run: |
source ${HOME}/.cargo/env
cargo fmt --all -- --check
$HOME/.cargo/bin/taplo fmt --check
$HOME/.cargo/bin/taplo lint
- name: cache cargo build
uses: actions/cache@v2
with:
path: |
./target
key: cargo-build-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-build-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
cargo-build-
- name: Cargo Check & Clippy
env:
RUST_BACKTRACE: full
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 2G
SCCACHE_DIR: /home/runner/.cache/sccache
SCCACHE_DIR: ~/.cache/sccache
shell: bash
run: |
source ${HOME}/.cargo/env
SKIP_WASM_BUILD=1 cargo check --no-default-features
Expand Down
Loading