-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
1,859 additions
and
980 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,87 @@ | ||
name: build client | ||
|
||
on: | ||
push: | ||
branches: [ master, develop ] | ||
pull_request: | ||
branches: [ master, develop ] | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
jobs: | ||
build-clients: | ||
runs-on: windows-2022 | ||
calculate-version: | ||
name: Calculate Version | ||
runs-on: windows-latest | ||
outputs: | ||
AssemblySemVer: ${{ steps.gitversion.outputs.AssemblySemVer }} | ||
AssemblySemFileVer: ${{ steps.gitversion.outputs.AssemblySemFileVer }} | ||
InformationalVersion: ${{ steps.gitversion.outputs.InformationalVersion }} | ||
SemVer: ${{ steps.gitversion.outputs.SemVer }} | ||
PreReleaseTag: ${{ steps.gitversion.outputs.PreReleaseTag }} | ||
Sha: ${{ steps.gitversion.outputs.Sha }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
with: | ||
fetch-depth: 0 | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/setup@main | ||
with: | ||
versionSpec: '5.x' | ||
- name: Determine Version | ||
id: gitversion | ||
uses: gittools/actions/gitversion/execute@main | ||
publish: | ||
name: Publish | ||
runs-on: windows-latest | ||
needs: calculate-version | ||
env: | ||
AssemblySemVer: ${{ needs.calculate-version.outputs.AssemblySemVer }} | ||
AssemblySemFileVer: ${{ needs.calculate-version.outputs.AssemblySemFileVer }} | ||
InformationalVersion: ${{ needs.calculate-version.outputs.InformationalVersion }} | ||
SemVer: ${{ needs.calculate-version.outputs.SemVer }} | ||
Sha: ${{ needs.calculate-version.outputs.Sha }} | ||
strategy: | ||
matrix: | ||
Game: [Ares,TS,YR] | ||
|
||
game: [Ares,TS,YR] | ||
framework: [net8.0, net48] | ||
steps: | ||
- uses: actions/checkout@v3.1.0 | ||
- uses: actions/checkout@main | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET Core SDK | ||
uses: actions/[email protected] | ||
ref: ${{ env.Sha }} | ||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@main | ||
with: | ||
dotnet-version: '7.x.x' | ||
|
||
- name: Build ${{matrix.Game}} | ||
run: ./BuildScripts/Build-${{matrix.Game}}.ps1 | ||
dotnet-version: '8.x.x' | ||
- name: Build ${{matrix.game}} | ||
run: ./BuildScripts/Build-${{matrix.game}}.ps1 Release ${{matrix.framework}} ${{env.AssemblySemVer}} ${{env.AssemblySemFileVer}} ${{env.InformationalVersion}} | ||
shell: pwsh | ||
|
||
- uses: actions/[email protected] | ||
name: Upload Artifacts | ||
- name: Zip | ||
run: 7z a -r "${{ format('{0}-v{1}-{2}.zip', matrix.game, env.SemVer, matrix.framework) }}" "./Compiled/${{matrix.game}}/${{matrix.framework}}/*.*" "-x!*.xml" | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: artifacts-${{matrix.Game}} | ||
path: ./Compiled/${{matrix.Game}} | ||
|
||
name: ${{matrix.game}}-${{matrix.framework}} | ||
path: ${{ format('{0}-v{1}-{2}.zip', matrix.game, env.SemVer, matrix.framework) }} | ||
if-no-files-found: error | ||
release: | ||
name: Release | ||
if: github.event_name == 'workflow_dispatch' | ||
needs: [calculate-version, publish] | ||
env: | ||
PreReleaseTag: ${{ needs.calculate-version.outputs.PreReleaseTag }} | ||
SemVer: ${{ needs.calculate-version.outputs.SemVer }} | ||
Sha: ${{ needs.calculate-version.outputs.Sha }} | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
with: | ||
ref: ${{ env.Sha }} | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@main | ||
with: | ||
path: ./artifacts | ||
- name: Release | ||
run: gh release create ${{ format('v{0}', env.SemVer) }} (Get-Item ./artifacts/*/*.zip) --generate-notes --target ${{ github.sha }} ${{ env.PreReleaseTag != '' && '--prerelease' || '' }} | ||
env: | ||
GH_TOKEN: ${{ github.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env pwsh | ||
#Requires -Version 7.2 | ||
|
||
param($Configuration = "Release", $Framework = "net8.0", $AssemblySemVer = "0.0.0", $AssemblySemFileVer = "0.0.0.0", $InformationalVersion = "0.0.0-local") | ||
|
||
. $PSScriptRoot\Common.ps1 | ||
|
||
@('Ares', 'TS', 'YR') | ForEach-Object { | ||
. "$PSScriptRoot\Build-$_.ps1" $Configuration $Framework $AssemblySemVer $AssemblySemFileVer $InformationalVersion | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/usr/bin/env pwsh | ||
#Requires -Version 7.2 | ||
|
||
param($Configuration = "Release") | ||
param($Configuration = "Release", $AssemblySemVer = "0.0.0", $AssemblySemFileVer = "0.0.0.0", $InformationalVersion = "0.0.0-local") | ||
|
||
. $PSScriptRoot\Common.ps1 | ||
|
||
@('Ares', 'TS', 'YR') | ForEach-Object { | ||
. "$PSScriptRoot\Build-$_.ps1" $Configuration | ||
@('net8.0', 'net48') | ForEach-Object { | ||
. "$PSScriptRoot\Build-All-Framework.ps1" $Configuration $_ $AssemblySemVer $AssemblySemFileVer $InformationalVersion | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#!/usr/bin/env pwsh | ||
#Requires -Version 7.2 | ||
|
||
param($Configuration = "Release") | ||
param($Configuration = "Release", $Framework = "net8.0", $AssemblySemVer = "0.0.0", $AssemblySemFileVer = "0.0.0.0", $InformationalVersion = "0.0.0-local") | ||
|
||
. $PSScriptRoot\Common.ps1 | ||
|
||
Build-Project $Configuration Ares UniversalGL net7.0 | ||
if ($Framework -notlike 'net4*') { | ||
Build-Project $Configuration Ares UniversalGL $Framework $AssemblySemVer $AssemblySemFileVer $InformationalVersion | ||
} | ||
if ($IsWindows) { | ||
@('WindowsDX', 'WindowsGL', 'WindowsXNA') | ForEach-Object { | ||
Build-Project $Configuration Ares $_ net48 | ||
Build-Project $Configuration Ares $_ $Framework$($Framework -notlike 'net4*' ? '-windows' : '') $AssemblySemVer $AssemblySemFileVer $InformationalVersion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#!/usr/bin/env pwsh | ||
#Requires -Version 7.2 | ||
|
||
param($Configuration = "Release") | ||
param($Configuration = "Release", $Framework = "net8.0", $AssemblySemVer = "0.0.0", $AssemblySemFileVer = "0.0.0.0", $InformationalVersion = "0.0.0-local") | ||
|
||
. $PSScriptRoot\Common.ps1 | ||
|
||
Build-Project $Configuration TS UniversalGL net7.0 | ||
if ($Framework -notlike 'net4*') { | ||
Build-Project $Configuration TS UniversalGL $Framework $AssemblySemVer $AssemblySemFileVer $InformationalVersion | ||
} | ||
if ($IsWindows) { | ||
@('WindowsDX', 'WindowsGL', 'WindowsXNA') | ForEach-Object { | ||
Build-Project $Configuration TS $_ net48 | ||
Build-Project $Configuration TS $_ $Framework$($Framework -notlike 'net4*' ? '-windows' : '') $AssemblySemVer $AssemblySemFileVer $InformationalVersion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
#!/usr/bin/env pwsh | ||
#Requires -Version 7.2 | ||
|
||
param($Configuration = "Release") | ||
param($Configuration = "Release", $Framework = "net8.0", $AssemblySemVer = "0.0.0", $AssemblySemFileVer = "0.0.0.0", $InformationalVersion = "0.0.0-local") | ||
|
||
. $PSScriptRoot\Common.ps1 | ||
|
||
Build-Project $Configuration YR UniversalGL net7.0 | ||
if ($Framework -notlike 'net4*') { | ||
Build-Project $Configuration YR UniversalGL $Framework $AssemblySemVer $AssemblySemFileVer $InformationalVersion | ||
} | ||
if ($IsWindows) { | ||
@('WindowsDX', 'WindowsGL', 'WindowsXNA') | ForEach-Object { | ||
Build-Project $Configuration YR $_ net48 | ||
Build-Project $Configuration YR $_ $Framework$($Framework -notlike 'net4*' ? '-windows' : '') $AssemblySemVer $AssemblySemFileVer $InformationalVersion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.