mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 02:41:18 +03:00
# Conflicts: # .github/workflows/publish.yml # Content.Server/Chat/Managers/ChatManager.cs # Content.Server/Chat/Systems/ChatSystem.cs # Content.Server/GameTicking/GameTicker.RoundFlow.cs # Content.Server/GameTicking/GameTicker.Spawning.cs # Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs # Content.Server/Zombies/ZombieSystem.Transform.cs # Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml # Resources/Prototypes/Maps/bagel.yml # Resources/Prototypes/Maps/box.yml # Resources/Prototypes/Maps/fland.yml # Resources/Prototypes/Maps/marathon.yml # Resources/Prototypes/Maps/meta.yml # Resources/Prototypes/Roles/Jobs/Security/detective.yml # Resources/Textures/Tiles/attributions.yml
84 lines
2.2 KiB
YAML
84 lines
2.2 KiB
YAML
name: Test Packaging
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, staging, trying ]
|
|
paths:
|
|
- '**.cs'
|
|
- '**.csproj'
|
|
- '**.sln'
|
|
- '**.git**'
|
|
- '**.yml'
|
|
# no docs on which one of these is supposed to work, so
|
|
# why not just do both
|
|
- 'RobustToolbox'
|
|
- 'RobustToolbox/**'
|
|
merge_group:
|
|
pull_request:
|
|
types: [ opened, reopened, synchronize, ready_for_review ]
|
|
branches: [ master ]
|
|
paths:
|
|
- '**.cs'
|
|
- '**.csproj'
|
|
- '**.sln'
|
|
- '**.git**'
|
|
- '**.yml'
|
|
- 'RobustToolbox'
|
|
- 'RobustToolbox/**'
|
|
|
|
jobs:
|
|
build:
|
|
name: Test Packaging
|
|
if: github.actor != 'IanComradeBot' && github.event.pull_request.draft == false
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Master
|
|
uses: actions/checkout@v3.6.0
|
|
|
|
- name: Setup Submodule
|
|
run: |
|
|
git submodule update --init --recursive
|
|
|
|
- name: Pull engine updates
|
|
uses: space-wizards/submodule-dependency@v0.1.5
|
|
|
|
- name: Update Engine Submodules
|
|
run: |
|
|
cd RobustToolbox/
|
|
git submodule update --init --recursive
|
|
|
|
# Corvax-Secrets-Start
|
|
- name: Setup secrets
|
|
env:
|
|
SSH_KEY: ${{ secrets.SECRETS_PRIVATE_KEY }}
|
|
if: ${{ env.SSH_KEY != '' }}
|
|
run: |
|
|
mkdir ~/.ssh
|
|
echo "${{ secrets.SECRETS_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
|
chmod 600 ~/.ssh/id_rsa
|
|
echo "HOST *" > ~/.ssh/config
|
|
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
|
git -c submodule.Secrets.update=checkout submodule update --init
|
|
# Corvax-Secrets-End
|
|
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v3.2.0
|
|
with:
|
|
dotnet-version: 7.0.x
|
|
|
|
- name: Install dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Package client
|
|
run: |
|
|
Tools/package_server_build.py -p win-x64 linux-x64 osx-x64 linux-arm64
|
|
Tools/package_client_build.py
|
|
|
|
- name: Update Build Info
|
|
run: Tools/gen_build_info.py
|
|
|
|
- name: Shuffle files around
|
|
run: |
|
|
mkdir "release/${{ github.sha }}"
|
|
mv release/*.zip "release/${{ github.sha }}"
|