SCCACHE_DIR/CARGO_TARGET_DIR now point at /var/local/sccache and /var/local/cargo-target, shared with the interactive dev shell via a new `builders` group, instead of the CI job hitting a leftover personal sccache server it had no permission to write build output for.
This commit is contained in:
@@ -15,6 +15,11 @@ jobs:
|
|||||||
CARGO_HOME: /var/local/cargo
|
CARGO_HOME: /var/local/cargo
|
||||||
RUSTUP_HOME: /var/local/rustup
|
RUSTUP_HOME: /var/local/rustup
|
||||||
PATH: /var/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin
|
PATH: /var/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin
|
||||||
|
# Shared with interactive dev builds (see ~/.config/fish/config.fish)
|
||||||
|
# so a crate compiled once, by either a manual build or CI, is
|
||||||
|
# cached for the other - real cache hits, not just a warm toolchain.
|
||||||
|
SCCACHE_DIR: /var/local/sccache
|
||||||
|
CARGO_TARGET_DIR: /var/local/cargo-target
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -26,8 +31,8 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
rel="/srv/app/uhhm-portal/releases/${{ github.sha }}"
|
rel="/srv/app/uhhm-portal/releases/${{ github.sha }}"
|
||||||
mkdir -p "$rel"
|
mkdir -p "$rel"
|
||||||
cp target/release/portal "$rel/uhhm-portal"
|
cp "$CARGO_TARGET_DIR/release/portal" "$rel/uhhm-portal"
|
||||||
cp -r target/site "$rel/site"
|
cp -r "$CARGO_TARGET_DIR/site" "$rel/site"
|
||||||
ln -sfn "$rel" /srv/app/uhhm-portal/current
|
ln -sfn "$rel" /srv/app/uhhm-portal/current
|
||||||
|
|
||||||
# Sourced from this repo's own Settings -> Actions Variables/Secrets,
|
# Sourced from this repo's own Settings -> Actions Variables/Secrets,
|
||||||
|
|||||||
Reference in New Issue
Block a user