well,
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1s

This commit is contained in:
hogweed1
2026-11-10 02:11:32 +10:00
parent 4b5f47b0e7
commit bc70cea468
6 changed files with 46 additions and 5 deletions

View File

@@ -0,0 +1,24 @@
[Unit]
Description=Shared Compilation Cache Daemon
After=network.target
[Service]
Type=simple
# Укажите точный путь к бинарнику (узнать через `which sccache`)
ExecStart=/root/.cargo/bin/sccache
### TODO :: exec-stop ??
#Restart=always
#User=hogweed1
# Жестко прописываем все переменные, чтобы не зависеть от терминала
Environment="SCCACHE_BUCKET=sccache-bucket"
Environment="SCCACHE_ENDPOINT=https://s3.guaranteedstruggle.host"
Environment="AWS_ACCESS_KEY_ID=L5SAHFW2Y7WD9220WE9Y"
Environment="AWS_SECRET_ACCESS_KEY=wRAlYYpSdYZ6YBWBMPrMMunmlntHnCU04lD3bpD5"
Environment="SCCACHE_S3_ENABLE_VIRTUAL_HOST_STYLE=false"
Environment="SCCACHE_REGION=us-east-1"
Environment="SCCACHE_START_SERVER=1"
Environment="SCCACHE_NO_DAEMON=1"
[Install]
WantedBy=multi-user.target