mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-02 11:13:29 +00:00
Fix Server CI running out of disk space (#1222)
This commit is contained in:
parent
e0b72c41da
commit
1b28343304
6
.github/actions/setup-rust/action.yaml
vendored
6
.github/actions/setup-rust/action.yaml
vendored
|
@ -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
|
||||
|
|
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
12
.github/workflows/server.yml
vendored
12
.github/workflows/server.yml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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'"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,4 +59,4 @@
|
|||
"eslintConfig": {
|
||||
"root": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue