fix: 升级 Rust 到 1.85 以解析 v4 格式的 Cargo.lock
CI and Docker Build / Cargo Check (push) Failing after 26s
CI and Docker Build / Build and Push Docker Image (push) Skipped
CI and Docker Build / Deploy to Remote Server (push) Skipped

This commit is contained in:
2026-10-30 05:01:04 +08:00
parent eaaca6cffd
commit 69dfa1015e
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ jobs:
name: Cargo Check
runs-on: ubuntu
container:
image: rust:1.75
# Cargo.lock 为 v4 格式,需要 Cargo >= 1.78
image: rust:1.85
steps:
- name: Checkout and check
+3 -2
View File
@@ -1,13 +1,14 @@
# 自建 Gitea CI 使用的镜像构建文件
# 与官方 docker/Dockerfile 的区别:
# 1. 编译在构建阶段内完成(rust:1.75 + musl 静态链接),不依赖外部预编译产物
# 1. 编译在构建阶段内完成(rust musl 静态链接),不依赖外部预编译产物
# 2. 基础镜像改为 alpine,不含 apimain(API 由独立的 rustdesk-api 容器提供,避免抢占 21114)
# 3. 保留 s6-overlay 与 key-secret 服务,因此 hbbs 会在首次启动时生成 /data/id_ed25519{,.pub}
#
# 构建(在仓库根目录执行,需要 .git 以拉取 submodule):
# docker build -f Dockerfile.ci -t git.viaeon.com/admin/rustdesk-server:latest .
FROM rust:1.75 AS builder
# Cargo.lock 为 v4 格式,需要 Cargo >= 1.78
FROM rust:1.85 AS builder
ARG TARGET=x86_64-unknown-linux-musl