forked from tgstation/TerraGov-Marine-Corps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TGMC Q1 2025 TGUI bump/516 compat (tgstation#17054)
Co-authored-by: TiviPlus <[email protected]>
- Loading branch information
Showing
542 changed files
with
30,419 additions
and
21,180 deletions.
There are no files selected for viewing
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,51 @@ | ||
# This action attempts to restore BYOND from a cache, or to install it otherwise. | ||
name: Restore or Install BYOND | ||
description: Attempts to restore a specified BYOND version from cache; if it can't, it installs it. | ||
|
||
inputs: | ||
major: | ||
description: "The major BYOND version to install. Defaults to the BYOND_MAJOR specified in `dependencies.sh`." | ||
required: false | ||
type: string | ||
minor: | ||
description: "The minor BYOND version to install. Defaults to the BYOND_MINOR specified in `dependencies.sh`." | ||
required: false | ||
type: string | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Configure BYOND version from inputs | ||
if: ${{ inputs.major }} | ||
shell: bash | ||
run: | | ||
echo "BYOND_MAJOR=${{ inputs.major }}" >> $GITHUB_ENV | ||
echo "BYOND_MINOR=${{ inputs.minor }}" >> $GITHUB_ENV | ||
- name: Configure BYOND version from dependencies.sh | ||
if: ${{ !inputs.major }} | ||
shell: bash | ||
run: | | ||
source dependencies.sh | ||
echo "BYOND_MAJOR=$BYOND_MAJOR" >> $GITHUB_ENV | ||
echo "BYOND_MINOR=$BYOND_MINOR" >> $GITHUB_ENV | ||
# The use of `actions/cache/restore` and `actions/cache/save` here is deliberate, as we want to | ||
# save the BYOND install to a cache as early as possible. If we used just `actions/cache`, it | ||
# would only attempt to save the cache at the end of a job. This ensures that if a workflow run | ||
# is cancelled, we already have a cache to restore from. | ||
- name: Restore BYOND cache | ||
id: restore_byond_cache | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ~/BYOND | ||
key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }} | ||
- name: Install BYOND | ||
if: ${{ !steps.restore_byond_cache.outputs.cache-hit }} | ||
shell: bash | ||
run: bash tools/ci/install_byond.sh | ||
- name: Save BYOND cache | ||
if: ${{ !steps.restore_byond_cache.outputs.cache-hit }} | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: ~/BYOND | ||
key: ${{ steps.restore_byond_cache.outputs.cache-primary-key }} |
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,26 @@ | ||
# This action is a wrapper around `actions/setup-node`, to use the version specified in | ||
# `dependencies.sh`. | ||
name: Setup Node | ||
description: Install Node using the version specified in `dependencies.sh`; additionally, restores the Yarn cache if one exists | ||
|
||
inputs: | ||
restore-yarn-cache: | ||
description: 'If `true`, restores the Yarn cache alongside installing node.' | ||
required: false | ||
type: boolean | ||
default: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Configure Node version | ||
shell: bash | ||
run: | | ||
source dependencies.sh | ||
echo "NODE_VERSION_REQUIRED=$NODE_VERSION_LTS" >> $GITHUB_ENV | ||
- name: Install Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION_REQUIRED }} | ||
cache: ${{ fromJSON(inputs.restore-yarn-cache) && 'yarn' || '' }} | ||
cache-dependency-path: ${{ fromJSON(inputs.restore-yarn-cache) && 'tgui/yarn.lock' || '' }} |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
# Format is version: map | ||
# Example: | ||
# 500.1337: runtimestation | ||
516.1648: debugdalus;516 |
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
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.