Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build CustomAudioHub

on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
workflow_dispatch:
# allows manual trigger

jobs:
build:
runs-on: windows-latest

#LabAPI references
env:
REFERENCES_URL: https://exmod-team.github.io/SL-References/Dev.zip
REFERENCES_PATH: ${{ github.workspace }}/References
MAINPATH: CustomAudioHub/CustomAudioHub.csproj

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Dotnet
uses: actions/setup-dotnet@v4.0.1

- name: Download References
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.REFERENCES_URL }} -OutFile "${{ github.workspace }}/References.zip"
Expand-Archive -Path "${{ github.workspace }}/References.zip" -DestinationPath ${{ env.REFERENCES_PATH }}

- name: Rename Assembly-CSharp-Publicized to Assembly-CSharp
shell: pwsh
run: |
Rename-Item -Path "${{ env.REFERENCES_PATH }}\Assembly-CSharp-Publicized.dll" -NewName "Assembly-CSharp.dll"

- name: Build Main
env:
SL_REFERENCES: ${{ env.REFERENCES_PATH }}
shell: pwsh
run: |
dotnet build ${{ env.MAINPATH }} -c Release -o:Main

- name: Upload Main artifact
uses: actions/upload-artifact@v4
with:
name: CustomAudioHub
path: Main
if-no-files-found: error
Loading
Loading