Update, add option to take slots from server per listener. #155
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
name: .NET | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
DEPOT_DOWNLOADER_VERSION: 2.5.0 | |
SL_REFERENCES: D:\a\Proxy\SCPSL_REFERENCES\SCPSL_Data\Managed | |
UNITY_REFERENCES: D:\a\Proxy\SCPSL_REFERENCES\SCPSL_Data\Managed | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 7.0.x | |
- name: Download depot downloader | |
shell: pwsh | |
run: | | |
New-Item -ItemType Directory -Force -Path D:\a\Proxy | |
New-Item -ItemType Directory -Force -Path D:\a\Proxy\DepotDownloader | |
Invoke-WebRequest -Uri "https://github.com/SteamRE/DepotDownloader/releases/download/DepotDownloader_${{ env.DEPOT_DOWNLOADER_VERSION }}/depotdownloader-${{ env.DEPOT_DOWNLOADER_VERSION }}.zip" -OutFile "D:\a\Proxy\depotdownloader.zip" | |
Expand-Archive -Path D:\a\Proxy\depotdownloader.zip -PassThru -DestinationPath D:\a\Proxy/DepotDownloader | |
- name: Download SCPSL references. | |
shell: pwsh | |
run: | | |
New-Item -ItemType Directory -Force -Path D:\a\Proxy\SCPSL_REFERENCES | |
Start-Process -NoNewWindow -Wait -FilePath "D:\a\Proxy\DepotDownloader\DepotDownloader.exe" -WorkingDirectory "D:\a\Proxy\DepotDownloader" -ArgumentList '-app 996560','-dir D:\a\Proxy\SCPSL_REFERENCES' | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Publish Linux x64 | |
run: dotnet publish XProxy --configuration Release --self-contained --runtime linux-x64 | |
- name: Upload Linux x64 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: XProxy Linux x64 | |
path: ${{ github.workspace }}\XProxy\bin\Release\net7\linux-x64\publish | |
- name: Publish Windows x64 | |
run: dotnet publish XProxy --configuration Release --self-contained --runtime win-x64 | |
- name: Upload Windows x64 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: XProxy Windows x64 | |
path: ${{ github.workspace }}\XProxy\bin\Release\net7\win-x64\publish |