Compare commits

..

5 Commits

Author SHA1 Message Date
yhl452493373
054caa7721 launcher构建镜像切换为微软的dotnet sdk 9.0 2025-11-22 16:32:38 +08:00
yhl452493373
1903273938 更换容器 2025-11-22 16:26:55 +08:00
yhl452493373
44ea36eff5 增加ubuntu-22.04 2025-11-22 16:19:07 +08:00
yhl452493373
1a54cfa2b9 更新工作流 2025-11-22 16:17:55 +08:00
yhl452493373
cd2f3a2d10 更新工作流 2025-11-22 16:17:22 +08:00
3 changed files with 17 additions and 6 deletions

View File

@@ -2,6 +2,16 @@ name: 构建启动器
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
runner_os:
description: 选择运行器系统
type: choice
required: true
default: 'ubuntu-latest'
options:
- ubuntu-latest
- ubuntu-24.04
- ubuntu-22.04
- ubuntu-host
build_modules: build_modules:
description: '构建 Modules' description: '构建 Modules'
required: true required: true
@@ -28,9 +38,9 @@ env:
MANAGED_ZIP_FILE: Managed.zip MANAGED_ZIP_FILE: Managed.zip
jobs: jobs:
build-spt: build-launcher:
runs-on: ubuntu-latest runs-on: ${{ inputs.runner_os }}
container: refringe/spt-build-dotnet:2.1.0 container: mcr.microsoft.com/dotnet/sdk:9.0
defaults: defaults:
run: run:
shell: bash shell: bash

View File

@@ -11,6 +11,7 @@ on:
options: options:
- ubuntu-latest - ubuntu-latest
- ubuntu-24.04 - ubuntu-24.04
- ubuntu-22.04
- ubuntu-host - ubuntu-host
push_to_docker: push_to_docker:
description: 推送到 Docker Hub description: 推送到 Docker Hub

View File

@@ -170,7 +170,7 @@ fi
chmod a+x bin/* chmod a+x bin/*
# 添加容器镜像和构建脚本 # 添加容器镜像和构建脚本
DOCKER_CMD="$DOCKER_CMD refringe/spt-build-dotnet:2.1.0" DOCKER_CMD="$DOCKER_CMD mcr.microsoft.com/dotnet/sdk:9.0"
DOCKER_CMD="$DOCKER_CMD /build.sh" DOCKER_CMD="$DOCKER_CMD /build.sh"
DOCKER_CMD="$DOCKER_CMD \"$DATE_TIME\"" DOCKER_CMD="$DOCKER_CMD \"$DATE_TIME\""
DOCKER_CMD="$DOCKER_CMD \"$SPT_VERSION\"" DOCKER_CMD="$DOCKER_CMD \"$SPT_VERSION\""
@@ -197,7 +197,7 @@ eval $DOCKER_CMD
# -v "./build.sh:/build.sh:ro" \ # -v "./build.sh:/build.sh:ro" \
# -v "./bin/zip:/usr/bin/zip:ro" \ # -v "./bin/zip:/usr/bin/zip:ro" \
# -v "./bin/unzip:/usr/bin/unzip:ro" \ # -v "./bin/unzip:/usr/bin/unzip:ro" \
# refringe/spt-build-dotnet:2.1.0 \ # mcr.microsoft.com/dotnet/sdk:9.0 \
# /build.sh \ # /build.sh \
# "$DATE_TIME" \ # "$DATE_TIME" \
# "$SPT_VERSION" \ # "$SPT_VERSION" \