2024-12-10 17:32:22 +00:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2024-12-10 17:48:31 +00:00
|
|
|
build-win-x64:
|
|
|
|
runs-on: windows-latest
|
2024-12-10 17:32:22 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
2024-12-10 17:48:31 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-12-10 17:32:22 +00:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v4
|
|
|
|
with:
|
|
|
|
dotnet-version: '8.0.x'
|
|
|
|
- name: Build Windows
|
2024-12-10 17:48:31 +00:00
|
|
|
run: dotnet publish KeepersCompound.Lightmapper/KeepersCompound.Lightmapper.csproj -c Release -o release/win-x64 -r win-x64 -p:PublishAot=true --nologo
|
2024-12-10 17:32:22 +00:00
|
|
|
- name: Upload Windows
|
2024-12-10 17:48:31 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2024-12-10 17:32:22 +00:00
|
|
|
with:
|
|
|
|
name: win_x64
|
2024-12-10 17:53:42 +00:00
|
|
|
path: |
|
|
|
|
${{ github.workspace }}/release/win-x64/
|
|
|
|
!${{ github.workspace }}/release/win-x64/*.pdb
|
2024-12-10 17:48:31 +00:00
|
|
|
build-linux-x64:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v4
|
|
|
|
with:
|
|
|
|
dotnet-version: '8.0.x'
|
|
|
|
- name: Build
|
|
|
|
run: dotnet publish KeepersCompound.Lightmapper/KeepersCompound.Lightmapper.csproj -c Release -o release/linux-x64 -r linux-x64 -p:PublishAot=true --nologo
|
2024-12-10 17:32:22 +00:00
|
|
|
- name: Upload Linux
|
2024-12-10 17:48:31 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2024-12-10 17:32:22 +00:00
|
|
|
with:
|
|
|
|
name: linux_x64
|
2024-12-10 17:53:42 +00:00
|
|
|
path: |
|
|
|
|
${{ github.workspace }}/release/linux-x64/
|
|
|
|
!${{ github.workspace }}/release/linux-x64/*.dbg
|