Compare commits
5 Commits
3d2d4a4533
...
054caa7721
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
054caa7721 | ||
|
|
1903273938 | ||
|
|
44ea36eff5 | ||
|
|
1a54cfa2b9 | ||
|
|
cd2f3a2d10 |
16
.github/workflows/BuildLauncher.yml
vendored
16
.github/workflows/BuildLauncher.yml
vendored
@@ -2,6 +2,16 @@ name: 构建启动器
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
runner_os:
|
||||
description: 选择运行器系统
|
||||
type: choice
|
||||
required: true
|
||||
default: 'ubuntu-latest'
|
||||
options:
|
||||
- ubuntu-latest
|
||||
- ubuntu-24.04
|
||||
- ubuntu-22.04
|
||||
- ubuntu-host
|
||||
build_modules:
|
||||
description: '构建 Modules'
|
||||
required: true
|
||||
@@ -28,9 +38,9 @@ env:
|
||||
MANAGED_ZIP_FILE: Managed.zip
|
||||
|
||||
jobs:
|
||||
build-spt:
|
||||
runs-on: ubuntu-latest
|
||||
container: refringe/spt-build-dotnet:2.1.0
|
||||
build-launcher:
|
||||
runs-on: ${{ inputs.runner_os }}
|
||||
container: mcr.microsoft.com/dotnet/sdk:9.0
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
3
.github/workflows/BuildServer.yml
vendored
3
.github/workflows/BuildServer.yml
vendored
@@ -11,6 +11,7 @@ on:
|
||||
options:
|
||||
- ubuntu-latest
|
||||
- ubuntu-24.04
|
||||
- ubuntu-22.04
|
||||
- ubuntu-host
|
||||
push_to_docker:
|
||||
description: 推送到 Docker Hub
|
||||
@@ -28,7 +29,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build-server:
|
||||
runs-on: ${{ inputs.runner_os }}
|
||||
runs-on: ${{ inputs.runner_os }}
|
||||
|
||||
steps:
|
||||
- name: 检出代码
|
||||
|
||||
@@ -170,7 +170,7 @@ fi
|
||||
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 \"$DATE_TIME\""
|
||||
DOCKER_CMD="$DOCKER_CMD \"$SPT_VERSION\""
|
||||
@@ -197,7 +197,7 @@ eval $DOCKER_CMD
|
||||
# -v "./build.sh:/build.sh:ro" \
|
||||
# -v "./bin/zip:/usr/bin/zip:ro" \
|
||||
# -v "./bin/unzip:/usr/bin/unzip:ro" \
|
||||
# refringe/spt-build-dotnet:2.1.0 \
|
||||
# mcr.microsoft.com/dotnet/sdk:9.0 \
|
||||
# /build.sh \
|
||||
# "$DATE_TIME" \
|
||||
# "$SPT_VERSION" \
|
||||
|
||||
Reference in New Issue
Block a user