+10
-16
@@ -3,12 +3,10 @@ name: 构建 PCL
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'Plain Craft Launcher 2.sln'
|
|
||||||
- 'Plain Craft Launcher 2/**'
|
- 'Plain Craft Launcher 2/**'
|
||||||
- '.github/workflows/**'
|
- '.github/workflows/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'Plain Craft Launcher 2.sln'
|
|
||||||
- 'Plain Craft Launcher 2/**'
|
- 'Plain Craft Launcher 2/**'
|
||||||
- '.github/workflows/**'
|
- '.github/workflows/**'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -20,7 +18,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- name: 调试版
|
- name: 可调试开发版
|
||||||
configuration: Debug
|
configuration: Debug
|
||||||
- name: 开发版
|
- name: 开发版
|
||||||
configuration: Snapshot
|
configuration: Snapshot
|
||||||
@@ -34,9 +32,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
Solution_Name: Plain Craft Launcher 2.sln
|
# Wap_Project_Directory: Plain Craft Launcher 2
|
||||||
Wap_Project_Directory: Plain Craft Launcher 2
|
|
||||||
Wap_Project_Path: Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj
|
|
||||||
Configuration: ${{ matrix.configuration }}
|
Configuration: ${{ matrix.configuration }}
|
||||||
Version_Friendly_Name: ${{ matrix.name }}
|
Version_Friendly_Name: ${{ matrix.name }}
|
||||||
|
|
||||||
@@ -46,21 +42,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# setup msbuild
|
- name: 配置 MSBuild
|
||||||
- name: 安装 MSBuild
|
|
||||||
uses: microsoft/setup-msbuild@v2
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
with:
|
||||||
|
msbuild-architecture: x64
|
||||||
|
|
||||||
# # Restore the application to populate the obj folder with RuntimeIdentifiers
|
# 由于路径包含空格,使用环境变量传入路径,避免令人疑惑的引号写法
|
||||||
# - name: Restore the application
|
|
||||||
# run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
|
|
||||||
|
|
||||||
# Create the app package by building and packaging the Windows Application Packaging project
|
|
||||||
- name: 编译源代码
|
- name: 编译源代码
|
||||||
run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /t:Rebuild
|
run: msbuild $env:Project_Path /p:Configuration=$env:Configuration /t:Rebuild
|
||||||
|
env:
|
||||||
|
Project_Path: Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj
|
||||||
|
|
||||||
# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
|
|
||||||
- name: 上传编译产物
|
- name: 上传编译产物
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.Version_Friendly_Name }}
|
name: ${{ env.Version_Friendly_Name }}
|
||||||
path: ${{ env.Wap_Project_Directory }}\obj\${{ env.Configuration }}\Plain Craft Launcher 2.exe
|
path: Plain Craft Launcher 2\obj\${{ env.Configuration }}\Plain Craft Launcher 2.exe
|
||||||
|
|||||||
Reference in New Issue
Block a user