mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 13:23:28 +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:
|
save-cache:
|
||||||
description: Whether to save the Rust cache
|
description: Whether to save the Rust cache
|
||||||
required: false
|
required: false
|
||||||
default: "false"
|
default: 'false'
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
id: toolchain
|
id: toolchain
|
||||||
|
@ -23,7 +23,7 @@ runs:
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
save-if: ${{ inputs.save-cache }}
|
save-if: ${{ inputs.save-cache }}
|
||||||
prefix-key: "v0-rust-deps"
|
prefix-key: 'v0-rust-deps'
|
||||||
shared-key: ${{ inputs.targets }}
|
shared-key: ${{ inputs.targets }}
|
||||||
|
|
||||||
- name: Restore cached Prisma codegen
|
- 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.toml'
|
||||||
- 'Cargo.lock'
|
- '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
|
- name: Setup System and Rust
|
||||||
if: steps.filter.outputs.changes == 'true'
|
if: steps.filter.outputs.changes == 'true'
|
||||||
uses: ./.github/actions/setup-system
|
uses: ./.github/actions/setup-system
|
||||||
|
|
12
.github/workflows/server.yml
vendored
12
.github/workflows/server.yml
vendored
|
@ -11,6 +11,17 @@ jobs:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -45,6 +56,7 @@ jobs:
|
||||||
tags: ${{ steps.image_info.outputs.tag }} ${{ github.event_name == 'release' && 'production' || 'staging' }}
|
tags: ${{ steps.image_info.outputs.tag }} ${{ github.event_name == 'release' && 'production' || 'staging' }}
|
||||||
archs: amd64
|
archs: amd64
|
||||||
image: ${{ steps.image_info.outputs.name }}
|
image: ${{ steps.image_info.outputs.name }}
|
||||||
|
layers: 'false'
|
||||||
context: ./apps/server/docker
|
context: ./apps/server/docker
|
||||||
build-args: |
|
build-args: |
|
||||||
REPO=${{ steps.image_info.outputs.repo }}
|
REPO=${{ steps.image_info.outputs.repo }}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "@sd/server",
|
"name": "@sd/server",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"license": "GPL-3.0-only",
|
"license": "GPL-3.0-only",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "RUST_LOG=\"sd_core=info\" cargo watch -x 'run -p sd-server'"
|
"dev": "RUST_LOG=\"sd_core=info\" cargo watch -x 'run -p sd-server'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,4 +59,4 @@
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true
|
"root": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue