chore: self-hosted is real (#3376)

This commit is contained in:
Jerry
2025-09-04 02:11:37 +05:00
committed by GitHub
parent c91cf2fd8a
commit ed41622174
28 changed files with 115 additions and 43 deletions

View File

@@ -1,4 +1,4 @@
name: Benchmarks
name: Benchmarks
on:
workflow_dispatch:
schedule:
@@ -9,7 +9,7 @@ concurrency: benchmarks
jobs:
benchmark:
name: Run Benchmarks
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4.2.2
with:

View File

@@ -6,7 +6,7 @@ on:
jobs:
docfx:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4.2.2
- name: Setup submodule
@@ -18,10 +18,21 @@ jobs:
run: |
cd RobustToolbox/
git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 9.0.x
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
- name: Set DOTNET_ROOT and PATH
run: |
echo "DOTNET_ROOT=${{ runner.temp }}/.dotnet" >> $GITHUB_ENV
echo "${{ runner.temp }}/.dotnet" >> $GITHUB_PATH
- name: Check .NET installation
run: dotnet --info
- name: Install dependencies
run: dotnet restore

View File

@@ -1,4 +1,4 @@
name: Build & Test Map Renderer
name: Build & Test Map Renderer
on:
push:
@@ -13,7 +13,7 @@ jobs:
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest]
os: [self-hosted]
runs-on: ${{ matrix.os }}
@@ -37,6 +37,16 @@ jobs:
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 9.0.x
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
- name: Set DOTNET_ROOT and PATH
run: |
echo "DOTNET_ROOT=${{ runner.temp }}/.dotnet" >> $GITHUB_ENV
echo "${{ runner.temp }}/.dotnet" >> $GITHUB_PATH
- name: Check .NET installation
run: dotnet --info
- name: Install dependencies
run: dotnet restore

View File

@@ -13,7 +13,7 @@ jobs:
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest]
os: [self-hosted]
runs-on: ${{ matrix.os }}
@@ -37,6 +37,16 @@ jobs:
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 9.0.x
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
- name: Set DOTNET_ROOT and PATH
run: |
echo "DOTNET_ROOT=${{ runner.temp }}/.dotnet" >> $GITHUB_ENV
echo "${{ runner.temp }}/.dotnet" >> $GITHUB_PATH
- name: Check .NET installation
run: dotnet --info
- name: Install dependencies
run: dotnet restore

View File

@@ -1,4 +1,4 @@
name: CRLF Check
name: CRLF Check
on:
pull_request:
@@ -8,7 +8,7 @@ jobs:
build:
name: CRLF Check
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4.2.2
- name: Check for CRLF

View File

@@ -3,19 +3,19 @@ name: Close PRs on master
on:
pull_request_target:
types: [ opened, ready_for_review ]
jobs:
run:
runs-on: ubuntu-latest
runs-on: [self-hosted]
if: ${{github.head_ref == 'master' || github.head_ref == 'main' || github.head_ref == 'develop'}}
steps:
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: "Благодарим вас за вклад в репозиторий Space Station 14. К сожалению, похоже, что вы отправили свой PR из master-ветки. Мы предлагаем вам следовать [нашей документации по использованию git](https://docs.spacestation14.com/en/general-development/setup/git-for-the-ss14-developer.html) \n\n Вы можете переместить текущую работу из master-ветки в другую ветку, выполнив команду `git branch <названиеетки>` и сбросив измененив в master-ветке."
# If you prefer to just comment on the pr and not close it, uncomment the bellow and comment the above
# - uses: actions/github-script@v7
# with:
# script: |

View File

@@ -1,4 +1,4 @@
name: "Labels: Approve"
name: "Labels: Approve"
on:
pull_request_review:
@@ -9,7 +9,7 @@ jobs:
permissions:
pull-requests: write
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions-ecosystem/action-remove-labels@v1
with:

View File

@@ -1,4 +1,4 @@
name: "Labels: Changes"
name: "Labels: Changes"
on:
pull_request_review:
@@ -9,7 +9,7 @@ jobs:
permissions:
pull-requests: write
if: github.event.review.state == 'changes_requested'
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:

View File

@@ -11,7 +11,7 @@ on:
jobs:
Label:
if: ( github.event.pull_request.draft == false ) && ( github.actor != 'IanComradeBot' )
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- name: Check for Merge Conflicts
uses: eps1lon/actions-label-merge-conflict@v3.0.0

View File

@@ -1,4 +1,4 @@
name: "Labels: Review"
name: "Labels: Review"
on:
pull_request_target:
@@ -6,7 +6,7 @@ on:
jobs:
add_label:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:

View File

@@ -1,4 +1,4 @@
name: "Labels: PR"
name: "Labels: PR"
on:
- pull_request_target
@@ -9,6 +9,6 @@ jobs:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/labeler@v5

View File

@@ -9,7 +9,7 @@ jobs:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: tspascoal/get-user-teams-membership@v3
id: checkUserMember

View File

@@ -2,7 +2,7 @@ name: "Labels: Size"
on: pull_request_target
jobs:
size-label:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- name: size-label
uses: "pascalgn/size-label-action@v0.5.5"

View File

@@ -9,7 +9,7 @@ on:
jobs:
add_label:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:

View File

@@ -9,7 +9,7 @@ on:
jobs:
add_label:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions-ecosystem/action-add-labels@v1
with:

View File

@@ -1,4 +1,4 @@
name: "Labels: Untriaged"
name: "Labels: Untriaged"
on:
issues:
@@ -8,7 +8,7 @@ on:
jobs:
add_label:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions-ecosystem/action-add-labels@v1
if: join(github.event.issue.labels) == ''

View File

@@ -8,7 +8,7 @@ on:
jobs:
this_aint_right:
name: Submodule update in pr found
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- name: Fail
run: exit 1

View File

@@ -10,7 +10,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
# - name: Install dependencies
@@ -24,6 +24,16 @@ jobs:
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 9.0.x
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
- name: Set DOTNET_ROOT and PATH
run: |
echo "DOTNET_ROOT=${{ runner.temp }}/.dotnet" >> $GITHUB_ENV
echo "${{ runner.temp }}/.dotnet" >> $GITHUB_PATH
- name: Check .NET installation
run: dotnet --info
- name: Get Engine Tag
run: |

View File

@@ -1,4 +1,4 @@
name: Publish Testing
name: Publish Testing
concurrency:
group: publish-testing
@@ -11,16 +11,27 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v3.6.0
with:
submodules: 'recursive'
- name: Setup .NET Core
uses: actions/setup-dotnet@v3.2.0
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 9.0.x
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
- name: Set DOTNET_ROOT and PATH
run: |
echo "DOTNET_ROOT=${{ runner.temp }}/.dotnet" >> $GITHUB_ENV
echo "${{ runner.temp }}/.dotnet" >> $GITHUB_PATH
- name: Check .NET installation
run: dotnet --info
- name: Get Engine Tag
run: |

View File

@@ -10,7 +10,7 @@ on:
- cron: '0 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- name: Fail if we are attempting to run on the master branch
if: ${{GITHUB.REF_NAME == 'master' && github.repository == 'space-wizards/space-station-14'}}

View File

@@ -8,7 +8,7 @@ on:
jobs:
diff:
name: Diff
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- name: Checkout
uses: actions/checkout@v4.2.2

View File

@@ -1,4 +1,4 @@
name: Test Packaging
name: Test Packaging
on:
push:
@@ -30,7 +30,7 @@ jobs:
build:
name: Test Packaging
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- name: Checkout Master
@@ -66,6 +66,16 @@ jobs:
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 9.0.x
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
- name: Set DOTNET_ROOT and PATH
run: |
echo "DOTNET_ROOT=${{ runner.temp }}/.dotnet" >> $GITHUB_ENV
echo "${{ runner.temp }}/.dotnet" >> $GITHUB_PATH
- name: Check .NET installation
run: dotnet --info
- name: Install dependencies
run: dotnet restore

View File

@@ -7,7 +7,7 @@ on:
jobs:
get_credits:
runs-on: ubuntu-latest
runs-on: [self-hosted]
# Hey there fork dev! If you like to include your own contributors in this then you can probably just change this to your own repo
# Do this in dump_github_contributors.ps1 too into your own repo
if: github.repository == 'space-wizards/space-station-14'

View File

@@ -18,7 +18,7 @@ on:
jobs:
update-wiki:
name: Build and Publish JSON blobs to wiki
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- name: Checkout Master
@@ -40,6 +40,16 @@ jobs:
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 9.0.x
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/.dotnet
- name: Set DOTNET_ROOT and PATH
run: |
echo "DOTNET_ROOT=${{ runner.temp }}/.dotnet" >> $GITHUB_ENV
echo "${{ runner.temp }}/.dotnet" >> $GITHUB_PATH
- name: Check .NET installation
run: dotnet --info
- name: Install Dependencies
run: dotnet restore

View File

@@ -10,7 +10,7 @@ jobs:
yaml-schema-validation:
name: YAML RGA schema validator
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4.2.2
- name: Setup Submodule

View File

@@ -11,7 +11,7 @@ on:
jobs:
validate_rsis:
name: Validate RSIs
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4.2.2
- name: Setup Submodule

View File

@@ -10,7 +10,7 @@ jobs:
yaml-schema-validation:
name: YAML map schema validator
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4.2.2
- name: Setup Submodule

View File

@@ -11,7 +11,7 @@ jobs:
build:
name: YAML Linter
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: [self-hosted]
steps:
- uses: actions/checkout@v4.2.2
- name: Setup submodule