Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

ci: limit disk usage #293

Merged
merged 5 commits into from
Sep 25, 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
7 changes: 0 additions & 7 deletions .github/templates/setup-worker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,3 @@ runs:
- name: Setup Ubuntu dependencies
shell: bash
run: sudo apt update && sudo apt install -y git clang curl libssl-dev llvm libudev-dev cmake protobuf-compiler

- name: Install Rust nightly
shell: bash
run: |
rustup toolchain install nightly-2023-01-01 --profile minimal --component rustfmt
rustup default nightly-2023-01-01
rustup target add wasm32-unknown-unknown
25 changes: 7 additions & 18 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
workflow_dispatch:

env:
CARGO_INCREMENTAL: 0
POLKA_VERSION: 1.0.0

jobs:
Expand All @@ -35,16 +36,10 @@ jobs:
uses: "./.github/templates/setup-worker"

- name: Cache Build artefacts
uses: actions/cache@v3
uses: Swatinem/rust-cache@v2.7.0
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-release-${{ env.POLKA_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-release-${{ env.POLKA_VERSION }}
cache-on-failure: true
shared-key: ${{ env.POLKA_VERSION }}-release

- name: Check Build Trappist node
run: |
Expand All @@ -64,16 +59,10 @@ jobs:
uses: "./.github/templates/setup-worker"

- name: Cache Build artefacts
uses: actions/cache@v3
uses: Swatinem/rust-cache@v2.7.0
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-debug-${{ env.POLKA_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-debug-${{ env.POLKA_VERSION }}
cache-on-failure: true
shared-key: ${{ env.POLKA_VERSION }}-debug

- name: Run Trappist tests
run: |
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ members = [
exclude = [
"xcm-simulator"
]
resolver = "2"

[profile.release]
panic = "unwind"
Expand All @@ -17,6 +18,9 @@ inherits = "release"
lto = true
codegen-units = 1

[profile.test]
debug = 0

[workspace.package]
authors = ["Trappist Network <https://github.com/TrappistNetwork>"]
homepage = "https://trappist.io"
Expand Down