mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- '**hotfix**'
|
|
- '**beta**'
|
|
- '**dev**'
|
|
paths:
|
|
- 'src/**'
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
- '**hotfix**'
|
|
- '**beta**'
|
|
- '**dev**'
|
|
paths:
|
|
- 'src/**'
|
|
|
|
jobs:
|
|
build-mod:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET 6
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '6.0.x'
|
|
|
|
- name: Add BepInEx NuGet source
|
|
run: |
|
|
# Add the BepInEx NuGet feed
|
|
dotnet nuget add source --name bepinex "https://nuget.bepinex.dev/v3/index.json"
|
|
|
|
- name: Install PowerShell Core
|
|
run: |
|
|
# Update package lists
|
|
sudo apt-get update
|
|
# Install PowerShell Core
|
|
sudo apt-get install -y powershell
|
|
# Verify installation
|
|
pwsh --version
|
|
# Create symlink for compatibility with scripts expecting powershell.exe
|
|
sudo ln -s /usr/bin/pwsh /usr/local/bin/powershell.exe || true
|
|
|
|
- name: Build
|
|
run: dotnet build src/*.csproj --configuration Release -p:CopyToGame=false
|
|
|
|
- name: Archive DLL file
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: BetterAmongUs.dll
|
|
path: src/bin/Release/net6.0/BetterAmongUs.dll
|