Change to github runners with separate windows and linux jobs
This commit is contained in:
parent
16975f39a1
commit
b686123e0a
|
@ -8,11 +8,11 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build-win-x64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: RouxAntoine/checkout@v3.5.4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
|
@ -20,16 +20,27 @@ jobs:
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build Windows
|
- name: Build Windows
|
||||||
run: dotnet publish KeepersCompound.Lightmapper/KeepersCompound.Lightmapper.csproj -c Release -o release/win-x64 -r win-x64 -p:PublishSingleFile=true --nologo
|
run: dotnet publish KeepersCompound.Lightmapper/KeepersCompound.Lightmapper.csproj -c Release -o release/win-x64 -r win-x64 -p:PublishAot=true --nologo
|
||||||
- name: Build Linux
|
|
||||||
run: dotnet publish KeepersCompound.Lightmapper/KeepersCompound.Lightmapper.csproj -c Release -o release/linux-x64 -r linux-x64 -p:PublishSingleFile=true --nologo
|
|
||||||
- name: Upload Windows
|
- name: Upload Windows
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: win_x64
|
name: win_x64
|
||||||
path: ${{ gitea.workspace }}/release/win-x64/
|
path: ${{ github.workspace }}/release/win-x64/
|
||||||
|
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
|
||||||
- name: Upload Linux
|
- name: Upload Linux
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux_x64
|
name: linux_x64
|
||||||
path: ${{ gitea.workspace }}/release/linux-x64/
|
path: ${{ github.workspace }}/release/linux-x64/
|
Loading…
Reference in New Issue