Skip to content

Commit

Permalink
test pupnet
Browse files Browse the repository at this point in the history
  • Loading branch information
TitleHHHH authored and TitleHHHH committed Oct 25, 2024
1 parent 3720355 commit f8af885
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 27 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/devbuilds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:

basic:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -20,15 +20,13 @@ jobs:
with:
dotnet-version: 9.x
- run: dotnet --version

- name: set shell script permissions
if: ${{ matrix.os != 'windows-latest'}}
run: chmod +x ./build.sh

- name: build (Unix)
if: ${{ matrix.os != 'windows-latest'}}
run: ./build.sh DevBuild --Configuration Release --Runtime linux-x64

- name: build (Windows)
if: ${{ matrix.os == 'windows-latest'}}
run: .\build.ps1 DevBuild --Configuration Release --Runtime win-x64

- name: Install Pupnet and dpkg
if: ${{ matrix.os == 'ubuntu-latest'}}
run: |
dotnet tool install -g KuiperZone.PupNet
sudo apt install dpkg
- name: Run pupnet
if: ${{ matrix.os == 'ubuntu-latest'}}
run: pupnet --runtime linux-64 --kind deb --app-version 4.0.0[1]
17 changes: 3 additions & 14 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Nuke.Common.Git;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
using Nuke.Common.Tooling;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitHub;
using Nuke.Common.Tools.MinVer;
Expand Down Expand Up @@ -58,21 +59,9 @@ class Build : NukeBuild
.Requires(() => Configuration.Equals(Configuration.Release))
.Executes(() =>
{
DotNetPublish(x => x
.SetProject(Solution.Platfroms.HolyClient_Desktop)
.SetConfiguration(Configuration)
.SetPublishSingleFile(true)
.SetProperty("DebugSymbols", "False")
.SetProperty("DebugType", "None")
.SetPublishReadyToRun(true)
.EnableSelfContained()
.SetAssemblyVersion(MinVer.AssemblyVersion)
.SetFileVersion(MinVer.FileVersion)
.SetOutput(BuildDirectory)
.SetFramework("net9.0")
.SetRuntime(Runtime));




});

}

0 comments on commit f8af885

Please sign in to comment.