Fix Server CI running out of disk space (#1222)

This commit is contained in:
Vítor Vasconcellos 2023-08-16 18:01:39 -03:00 committed by GitHub
parent e0b72c41da
commit 1b28343304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 18 deletions

View file

@ -7,9 +7,9 @@ inputs:
save-cache:
description: Whether to save the Rust cache
required: false
default: "false"
default: 'false'
runs:
using: "composite"
using: 'composite'
steps:
- name: Install Rust
id: toolchain
@ -23,7 +23,7 @@ runs:
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ inputs.save-cache }}
prefix-key: "v0-rust-deps"
prefix-key: 'v0-rust-deps'
shared-key: ${{ inputs.targets }}
- name: Restore cached Prisma codegen

View file

@ -136,13 +136,6 @@ jobs:
- 'Cargo.toml'
- 'Cargo.lock'
- name: Symlink target to C:\
if: ${{ runner.os == 'Windows' }}
shell: powershell
run: |
New-Item -ItemType Directory -Force -Path C:\spacedrive_target
New-Item -Path target -ItemType Junction -Value C:\spacedrive_target
- name: Setup System and Rust
if: steps.filter.outputs.changes == 'true'
uses: ./.github/actions/setup-system

View file

@ -11,6 +11,17 @@ jobs:
run:
shell: bash
steps:
- name: Maximize build space
if: ${{ runner.os == 'Linux' }}
uses: easimon/maximize-build-space@master
with:
remove-codeql: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'
remove-android: 'true'
overprovision-lvm: 'true'
remove-docker-images: 'true'
- name: Checkout repository
uses: actions/checkout@v3
@ -45,6 +56,7 @@ jobs:
tags: ${{ steps.image_info.outputs.tag }} ${{ github.event_name == 'release' && 'production' || 'staging' }}
archs: amd64
image: ${{ steps.image_info.outputs.name }}
layers: 'false'
context: ./apps/server/docker
build-args: |
REPO=${{ steps.image_info.outputs.repo }}

View file

@ -1,9 +1,9 @@
{
"name": "@sd/server",
"version": "0.0.0",
"main": "index.js",
"license": "GPL-3.0-only",
"scripts": {
"dev": "RUST_LOG=\"sd_core=info\" cargo watch -x 'run -p sd-server'"
}
"name": "@sd/server",
"version": "0.0.0",
"main": "index.js",
"license": "GPL-3.0-only",
"scripts": {
"dev": "RUST_LOG=\"sd_core=info\" cargo watch -x 'run -p sd-server'"
}
}

View file

@ -59,4 +59,4 @@
"eslintConfig": {
"root": true
}
}
}