Skip to content

chore(CI): maximize disk space #696

chore(CI): maximize disk space

chore(CI): maximize disk space #696

Workflow file for this run

name: Rust
on:
push:
branches: ['master']
pull_request:
branches: ['master']
env:
CARGO_TERM_COLOR: always
jobs:
setup:
name: Project setup
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 4096
- name: Checkout code
uses: actions/checkout@v4
- name: How're we looking?
run: |
df -h
# Install Node.js (version 20) and pnpm
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: How're we looking?
run: |
df -h
- name: Install pnpm
run: npm install -g pnpm
- name: How're we looking?
run: |
df -h
# Install and build node-ui
- name: Install node-ui dependencies with pnpm
run: pnpm install --prefix ./node-ui
- name: How're we looking?
run: |
df -h
- name: Build node-ui
run: pnpm --filter ./node-ui run build
- name: How're we looking?
run: |
df -h
- name: Setup rust toolchain
run: rustup toolchain install stable --profile minimal
- name: How're we looking?
run: |
df -h
- name: Setup rust cache
uses: Swatinem/rust-cache@v2
- name: How're we looking?
run: |
df -h
- name: Run code style checks
uses: ./.github/actions/style
- name: How're we looking?
run: |
df -h
- name: Build
run: cargo build --verbose
- name: How're we looking?
run: |
df -h
- name: Run tests
run: |
chmod +x $GITHUB_WORKSPACE/scripts/build-all-apps.sh
chmod +x $GITHUB_WORKSPACE/scripts/test.sh
$GITHUB_WORKSPACE/scripts/test.sh
- name: How're we looking?
run: |
df -h