Skip to content

Commit

Permalink
[github actions] fix failure on llvm disk space error
Browse files Browse the repository at this point in the history
LLVM ERROR: IO failure on output stream: No space left on device
error: could not compile `solana-ledger` (lib)
warning: build failed, waiting for other jobs to finish...
LLVM ERROR: IO failure on output stream: No space left on device
  • Loading branch information
ochaloup committed Jun 11, 2024
1 parent b7bc5ef commit 0011788
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 66 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/typescript-lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: Cargo lint and test

on:
push:
branches: [ main ]
# pull_request:
# branches: [ main ]
push

env:
# Not needed in CI, should make things a bit faster
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
# Remove unnecessary WASM build artifacts
WASM_BUILD_CLEAN_TARGET: 1
# stripping symbols and optimizing for binary size
RUSTFLAGS: -C strip=symbols -C opt-level=s

jobs:
lint-and-test:
Expand All @@ -19,21 +25,21 @@ jobs:
sudo apt-get update
sudo apt-get -y install libudev-dev
- name: Install Node.js
- name: 👨‍🔧 Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install pnpm
- name: 👩‍🔧 Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- uses: dtolnay/rust-toolchain@1.73.0
- uses: 🦿 dtolnay/rust-toolchain@1.73.0
with:
components: rustfmt, clippy

- name: Set up cargo cache
- name: 🦴 Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
Expand All @@ -48,4 +54,4 @@ jobs:

- run: pnpm install
- run: pnpm lint
- run: pnpm test:cargo
- run: cargo test --release --features no-entrypoint -- --nocapture
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:cargo": "cargo test --features no-entrypoint -- --nocapture",
"test": "pnpm test:cargo && pnpm test:bankrun && pnpm test:validator",
"cli": "ts-node ./packages/validator-bonds-cli/src/",
"lint:cargo": "cargo fmt -- --check && cargo clippy",
"lint:cargo": "cargo fmt -- --check && cargo clippy --release",
"lint:cargo-fix": "cargo fmt --all && cargo clippy --fix --allow-staged --allow-dirty",
"lint:ts": "gts lint",
"lint:ts-fix": "gts fix",
Expand All @@ -28,7 +28,7 @@
"@types/bn.js": "^5.1.5",
"@types/jest": "^29.5.12",
"@types/node": "^18.19.24",
"gts": "^5.2.0",
"gts": "^5.3.0",
"jest": "^29.7.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ export async function orchestrateWithdrawDeposit({
x.account.lamports > y.account.lamports
? 1
: x.account.lamports < y.account.lamports
? -1
: 0
? -1
: 0
)
.reduce<{
stakesAmount: BN
Expand Down
115 changes: 62 additions & 53 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0011788

Please sign in to comment.