This repository was archived by the owner on Feb 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (78 loc) · 3.9 KB
/
msbuild.yml
File metadata and controls
97 lines (78 loc) · 3.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# Authors: yak3d, perchik71
# Data: 07/11/2024
# License: GPLv3
name: MSBuild
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
OG_BUILD_CONFIGURATION: Release-10-163
NG_BUILD_CONFIGURATION: Release-10-984
AE_BUILD_CONFIGURATION: Release-11-191
permissions:
contents: read
jobs:
build-master:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# gets the short sha to append it to the archive name
- name: Get short SHA
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: OG-Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.OG_BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: NG-Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.NG_BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: AE-Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.AE_BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Make Bundle Directory
working-directory: ${{env.GITHUB_WORKSPACE}}
run: New-Item -ItemType Directory -Path "xcell-master-${{env.SHORT_SHA}}"
- name: Make Data Directory
working-directory: ${{env.GITHUB_WORKSPACE}}
run: New-Item -ItemType Directory -Path "xcell-master-${{env.SHORT_SHA}}\data"
- name: Make Fomod Directory
working-directory: ${{env.GITHUB_WORKSPACE}}
run: New-Item -ItemType Directory -Path "xcell-master-${{env.SHORT_SHA}}\fomod"
- name: Make Build Directory
working-directory: ${{env.GITHUB_WORKSPACE}}
run: New-Item -ItemType Directory -Path "xcell-master-${{env.SHORT_SHA}}\build"
- name: Copy Data X-CELL
working-directory: ${{env.GITHUB_WORKSPACE}}
run: Copy-Item -Path ".\data\*" -Destination "xcell-master-${{env.SHORT_SHA}}\data" -recurse -Force
- name: Copy Fomod X-CELL
working-directory: ${{env.GITHUB_WORKSPACE}}
run: Copy-Item -Path ".\fomod\*" -Destination "xcell-master-${{env.SHORT_SHA}}\fomod" -recurse -Force
- name: Copy Main X-CELL
working-directory: ${{env.GITHUB_WORKSPACE}}
run: Get-ChildItem -Recurse -Path ".\build" -Include "x-cell-og.dll", "x-cell-og.pdb", "x-cell-ng2.dll", "x-cell-ng2.pdb", "x-cell-ae.dll", "x-cell-ae.pdb" | ForEach-Object { Copy-Item -Path $_.FullName -Destination (Join-Path "xcell-master-${{env.SHORT_SHA}}\build" $_.Name) -Force }
- name: Upload X-CELL build artifacts
uses: actions/upload-artifact@v4
with:
name: xcell-master-${{env.SHORT_SHA}}
path: "xcell-master-${{env.SHORT_SHA}}"