1 Commits

Author SHA1 Message Date
d912da6310 aa
Some checks failed
Deploy control plane / Build, push, and deploy production (push) Failing after 6s
Release VPS agent / Build and publish Linux agent (push) Failing after 3m15s
2026-09-24 23:32:59 +03:00
3 changed files with 18 additions and 6 deletions

View File

@@ -44,12 +44,24 @@ jobs:
shell: bash shell: bash
run: | run: |
set -Eeuo pipefail set -Eeuo pipefail
for command_name in cargo rustup docker curl jq file sha256sum; do for command_name in docker curl jq file sha256sum; do
command -v "$command_name" >/dev/null || { command -v "$command_name" >/dev/null || {
printf 'runner prerequisite is missing: %s\n' "$command_name" >&2 printf 'runner prerequisite is missing: %s\n' "$command_name" >&2
exit 1 exit 1
} }
done done
if ! command -v rustup >/dev/null || ! command -v cargo >/dev/null; then
rustup_installer="$(mktemp "${RUNNER_TEMP:-/tmp}/rustup-init.XXXXXX")"
trap 'rm -f "$rustup_installer"' EXIT
curl --proto '=https' --tlsv1.2 --fail --silent --show-error \
https://sh.rustup.rs \
--output "$rustup_installer"
sh "$rustup_installer" -y --profile minimal --default-toolchain none
export PATH="${CARGO_HOME:-$HOME/.cargo}/bin:$PATH"
printf '%s\n' "${CARGO_HOME:-$HOME/.cargo}/bin" >> "$GITHUB_PATH"
fi
command -v rustup >/dev/null || { printf 'rustup installation failed\n' >&2; exit 1; }
command -v cargo >/dev/null || { printf 'cargo installation failed\n' >&2; exit 1; }
rustup toolchain install "$RUST_TOOLCHAIN" --profile minimal --no-self-update rustup toolchain install "$RUST_TOOLCHAIN" --profile minimal --no-self-update
rustup override set "$RUST_TOOLCHAIN" rustup override set "$RUST_TOOLCHAIN"
cargo install cross --version "$CROSS_VERSION" --locked cargo install cross --version "$CROSS_VERSION" --locked

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "vps-agent" name = "vps-agent"
version = "0.1.3" version = "0.1.4"
edition = "2021" edition = "2021"
rust-version = "1.80" rust-version = "1.80"
license = "Apache-2.0" license = "Apache-2.0"

View File

@@ -12,14 +12,14 @@ Register an amd64 Gitea Actions runner whose `ubuntu-latest` label resolves to a
Linux environment with: Linux environment with:
- `bash`, `curl`, `jq`, `file`, `sha256sum`, Git, and CA certificates; - `bash`, `curl`, `jq`, `file`, `sha256sum`, Git, and CA certificates;
- Rustup and Cargo;
- Docker with permission for the runner user to access its daemon; - Docker with permission for the runner user to access its daemon;
- outbound access to the Rust registries and the container registry used by - outbound access to the Rust registries and the container registry used by
`cross`. `cross`.
The job installs the pinned Rust 1.85.1 toolchain and `cross` 0.2.5. `cross` When Rustup or Cargo is absent, the job bootstraps Rustup using its official TLS
uses Docker to build both musl targets; no amd64 or arm64 build host is required. installer. It then installs the pinned Rust 1.85.1 toolchain and `cross` 0.2.5.
Do not expose the Docker daemon over an unauthenticated TCP socket. `cross` uses Docker to build both musl targets; no amd64 or arm64 build host is
required. Do not expose the Docker daemon over an unauthenticated TCP socket.
The simplest setup is a dedicated runner VM with an `ubuntu-latest:host` label. The simplest setup is a dedicated runner VM with an `ubuntu-latest:host` label.
If jobs run inside a container instead, that container needs the Docker CLI and If jobs run inside a container instead, that container needs the Docker CLI and