Move despawning to SITGameComponent & Fix CleanUp in CoopSitGame #361
Workflow file for this run
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
# Testing out the Linux Build to compare against Windows | |
name: SIT CI Linux | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
paths-ignore: | |
- '.github/**' | |
- '*.md' | |
branches: | |
- "master" | |
- "development" | |
workflow_dispatch: | |
jobs: | |
Build-SIT: | |
strategy: | |
matrix: | |
configuration: [Debug] | |
runs-on: ubuntu-latest # Using Ubuntu instead of Windows | |
env: | |
SolutionName: StayInTarkov | |
ProjectClient: Source/StayInTarkov.csproj | |
ProjectPrePatcher: SIT.WildSpawnType.PrePatcher/SIT.WildSpawnType.PrePatcher.csproj | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
# Restore all projects | |
- name: dotnet Restore | |
run: dotnet restore | |
# Build the project | |
- name: dotnet Publish | |
run: | | |
mkdir ${{ env.SolutionName }}-${{ matrix.configuration }} | |
dotnet build ${{ env.ProjectClient }} -c ${{ matrix.configuration }} -o ${{ env.SolutionName }}-${{ matrix.configuration }} | |
dotnet build ${{ env.ProjectPrePatcher }} -c ${{ matrix.configuration }} -o ${{ env.SolutionName }}-${{ matrix.configuration }} | |
# Remove unnecessary files | |
- name: Remove unnecessary files | |
run: | | |
rm ${{ env.SolutionName }}-${{ matrix.configuration }}/*.pdb | |
# Zip remaining files | |
- name: Zip remaining files | |
run: | | |
zip -r ${{ env.SolutionName }}-${{ matrix.configuration }}.zip ${{ env.SolutionName }}-${{ matrix.configuration }} | |
# Upload artifact with GitHub commit SHA | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.SolutionName }}-${{ matrix.configuration }}-${{ github.sha }} | |
path: ${{ env.SolutionName }}-${{ matrix.configuration }}/ | |
if-no-files-found: error |