-
Notifications
You must be signed in to change notification settings - Fork 66
141 lines (125 loc) · 5.59 KB
/
Engine.yml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: Build Engine DLLs
on:
push:
branches: [ "NetStandard" ]
pull_request:
branches: [ "NetStandard" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- name: Checkout FRB
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'FlatRedBall'
submodules: recursive
- name: Checkout Gum
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/Gum
fetch-depth: 1
path: 'Gum'
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
# - name: Build FlatRedBall iOS .NET 8
# run: dotnet build -c ${{ matrix.configuration }} 'FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.iOS.Net8.sln'
# - name: Package FlatRedBall iOS .NET 8
# uses: actions/upload-artifact@v3
# with:
# name: iOSMonoGameNet8${{ matrix.configuration }}
# path: FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.iOSMonoGame\bin\${{ matrix.configuration }}\net8.0-ios\
# - name: Build FlatRedBall Android .NET 8
# run: dotnet build -c ${{ matrix.configuration }} 'FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.Android.Net8.sln'
# - name: Package FlatRedBall Android .NET 8
# uses: actions/upload-artifact@v3
# with:
# name: AndroidMonoGameNet8${{ matrix.configuration }}
# path: FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.AndroidMonoGame\bin\${{ matrix.configuration }}\net8.0-android\
# - name: Build FlatRedBall FNA .NET 7
# run: dotnet build -c ${{ matrix.configuration }} 'FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.FNA.sln'
# - name: Package FlatRedBall FNA .NET 7
# uses: actions/upload-artifact@v3
# with:
# name: DesktopGlFnaNet7${{ matrix.configuration }}
# path: FlatRedBall/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms.FNA/bin/${{ matrix.configuration }}/net7.0/
# - name: Build FlatRedBall .NET 6
# run: dotnet build -c ${{ matrix.configuration }} 'FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.DesktopGLNet6.sln'
# - name: Package FlatRedBall .NET 6
# uses: actions/upload-artifact@v3
# with:
# name: DesktopGlNet6${{ matrix.configuration }}
# path: FlatRedBall/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms.DesktopGlNet6/bin/${{ matrix.configuration }}/net6.0/
- name: Build FlatRedBall .NET 4
run: dotnet build -c ${{ matrix.configuration }} 'FlatRedBall\Engines\Forms\FlatRedBall.Forms\FlatRedBall.Forms.DesktopGL.sln'
- name: Package FlatRedBall .NET 4
uses: actions/upload-artifact@v3
with:
name: DesktopGlNet4${{ matrix.configuration }}
path: FlatRedBall/Engines/Forms/FlatRedBall.Forms/FlatRedBall.Forms/bin/DesktopGL/${{ matrix.configuration }}/
# - name: Directory listing
# run: |
# Get-ChildItem -Path . -Recurse -ErrorAction SilentlyContinue -Force
gatekeeper:
needs: [build]
runs-on: windows-latest
steps:
- name: Trigger next jobs
run: echo "All build jobs completed successfully."
copyBuildsToTemplates:
needs: [gatekeeper]
env:
TEMPLATES: FlatRedBall\Templates
FORMS: FlatRedBall\Engines\Forms\FlatRedBall.Forms
runs-on: windows-latest
steps:
- name: Check if directory exists
run: |
$FolderPath = '.\FlatRedBall\Engines\Forms\FlatRedBall.Forms'
if (Test-Path -Path $FolderPath) {
Write-Host "Directory exists at $FolderPath"
} else {
Write-Host "Directory does not exist at $FolderPath"
}
$FolderPath2 = 'FlatRedBall\Engines\Forms\FlatRedBall.Forms'
if (Test-Path -Path $FolderPath2) {
Write-Host "Directory exists at $FolderPath2"
} else {
Write-Host "Directory does not exist at $FolderPath2"
}
$currentDirectory = $PWD.Path
Write-Host "Current directory: $currentDirectory"
if (Test-Path -Path $env:GITHUB_WORKSPACE) {
Write-Host "Current directory exists - wouldnt you know it?"
}
if (Test-Path -Path "$env:GITHUB_WORKSPACE") {
Write-Host "1it exists"
}
if (Test-Path -Path "$env:GITHUB_WORKSPACE\FlatRedBall\") {
Write-Host "2it exists"
}
if (Test-Path -Path "$env:GITHUB_WORKSPACE\FlatRedBall\FlatRedBall.Forms") {
Write-Host "3 exists"
}
shell: pwsh
# - name: Directory listing
# run: |
# Get-ChildItem -Path . -Recurse -ErrorAction SilentlyContinue -Force
- name: Copy libs
run: |
xcopy /E /I "${{ env.FORMS }}\FlatRedBall.Forms\bin\DesktopGL\Debug\*" ${{ env.TEMPLATES }}\FlatRedBallDesktopGlTemplate\FlatRedBallDesktopGlTemplate\Libraries\DesktopGl\Debug
xcopy /E /I "${{ env.FORMS }}\FlatRedBall.Forms\bin\DesktopGL\Release\*" ${{ env.TEMPLATES }}\FlatRedBallDesktopGlTemplate\FlatRedBallDesktopGlTemplate\Libraries\DesktopGl\Release