Skip to content

Commit

Permalink
Merge pull request #556 from CnCNet/release/2.11.0.0
Browse files Browse the repository at this point in the history
Release 2.11.0.0
  • Loading branch information
Metadorius authored Sep 10, 2024
2 parents 6f495b2 + 3edcefd commit fb64c5d
Show file tree
Hide file tree
Showing 377 changed files with 20,053 additions and 250,471 deletions.
363 changes: 359 additions & 4 deletions .editorconfig

Large diffs are not rendered by default.

73 changes: 59 additions & 14 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,19 +1,64 @@
# Set the default behavior, in case people don't have core.autocrlf set.
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
* eol=crlf
*.ps1 eol=lf

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
*.cs text eol=crlf
*.csproj text eol=crlf
*.manifest text eol=crlf
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.dll binary
*.pdb binary
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

# Shell scripts
*.sh text eof=lf
###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: cncnet
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
54 changes: 22 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,34 @@ on:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]

workflow_dispatch:
jobs:
build-clients:
runs-on: windows-2019
runs-on: windows-2022
strategy:
matrix:
Game:
- Ares
- TS
- YR

steps:
- uses: actions/checkout@v2

- name: Create Artifacts Directories
run: mkdir .\Artifacts\YR & mkdir .\Artifacts\Ares & mkdir .\Artifacts\TS
shell: cmd

- name: Build YR
run: BuildYR.bat
shell: cmd
working-directory: ./BuildScripts

- name: Archive YR
run: Get-ChildItem -Path "./Compiled/*" -Recurse | Move-Item -Destination "./Artifacts/YR"

- name: Build Ares
run: BuildAres.bat
shell: cmd
working-directory: ./BuildScripts

- name: Archive Ares
run: Get-ChildItem -Path "./Compiled/*" -Recurse | Move-Item -Destination "./Artifacts/Ares"
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build TS
run: BuildTS.bat
shell: cmd
working-directory: ./BuildScripts
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: ./global.json

- name: Archive TS
run: Get-ChildItem -Path "./Compiled/*" -Recurse | Move-Item -Destination "./Artifacts/TS"
- name: Build ${{matrix.Game}}
run: ./Scripts/build.ps1 ${{matrix.Game}}
shell: pwsh

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
name: Upload Artifacts
with:
name: artifacts
path: ./Artifacts
name: artifacts-${{matrix.Game}}
path: ./Compiled/${{matrix.Game}}

14 changes: 7 additions & 7 deletions .github/workflows/pr-build-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
jobs:
pr_comment:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/github-script@v3
- uses: actions/github-script@v6
with:
# This snippet is public-domain, taken from
# https://github.com/oprypin/nightly.link/blob/master/.github/workflows/pr-comment.yml
Expand All @@ -18,7 +18,7 @@ jobs:
const pull_head_sha = '${{github.event.workflow_run.head_sha}}';
const pull_user_id = ${{github.event.sender.id}};
const issue_number = await (async () => {
const pulls = await github.pulls.list({owner, repo});
const pulls = await github.rest.pulls.list({owner, repo});
for await (const {data} of github.paginate.iterator(pulls)) {
for (const pull of data) {
if (pull.head.sha === pull_head_sha && pull.user.id === pull_user_id) {
Expand All @@ -32,7 +32,7 @@ jobs:
} else {
return core.error(`No matching pull request found`);
}
const {data: {artifacts}} = await github.actions.listWorkflowRunArtifacts({owner, repo, run_id});
const {data: {artifacts}} = await github.rest.actions.listWorkflowRunArtifacts({owner, repo, run_id});
if (!artifacts.length) {
return core.error(`No artifacts found`);
}
Expand All @@ -41,12 +41,12 @@ jobs:
body += `\n* [${art.name}.zip](https://nightly.link/${owner}/${repo}/actions/artifacts/${art.id}.zip)`;
}
body += `\nThis comment is automatic and is meant to allow guests to get latest automatic builds without registering. It is updated on every successful build.`;
const {data: comments} = await github.issues.listComments({repo, owner, issue_number});
const {data: comments} = await github.rest.issues.listComments({repo, owner, issue_number});
const existing_comment = comments.find((c) => c.user.login === 'github-actions[bot]');
if (existing_comment) {
core.info(`Updating comment ${existing_comment.id}`);
await github.issues.updateComment({repo, owner, comment_id: existing_comment.id, body});
await github.rest.issues.updateComment({repo, owner, comment_id: existing_comment.id, body});
} else {
core.info(`Creating a comment`);
await github.issues.createComment({repo, owner, issue_number, body});
await github.rest.issues.createComment({repo, owner, issue_number, body});
}
Loading

0 comments on commit fb64c5d

Please sign in to comment.