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

Commit

Permalink
ci: limit disk usage (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilrobot-01 authored Sep 25, 2023
1 parent 479ffb2 commit 9b15c1b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
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

0 comments on commit 9b15c1b

Please sign in to comment.