Skip to content

Commit

Permalink
Added: Use Pinned PupNet Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed May 28, 2024
1 parent 16f7484 commit 4c5b629
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 11 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/build-linux-pupnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ on:
required: false
description: "The version of the application to build"
default: "1.0.0"
PupNetVersion:
PupNetRepo:
type: string
required: false
description: "The PupNet version to use"
default: "1.6.0"
description: "The URL of the PupNet repository"
default: "https://github.com/kuiperzone/PupNet-Deploy.git"
PupNetBranch:
type: string
required: false
description: "The branch or commit of PupNet to use"
default: "dabed0cc2063c5a2d2c4f780bb6718f4b90cfd16"
ProjectFile:
type: string
required: true
Expand Down Expand Up @@ -70,8 +75,17 @@ jobs:
- name: Install FUSE
run: sudo add-apt-repository universe && sudo apt install libfuse2

- name: Get PupNet
run: dotnet tool install -g KuiperZone.PupNet --version ${{ inputs.PupNetVersion }}
- name: Build & Install PupNet
run: |
# Our use of central package management may cause PupNet to fail build
# so we lift it out to a separate directory and build it there
mkdir ../PupNet
cd ../PupNet
git clone ${{ inputs.PupNetRepo }} .
git checkout ${{ inputs.PupNetBranch }}
dotnet build -c Release
cd PupNet/bin/Release/net8.0
dotnet tool install --global --add-source . KuiperZone.PupNet
- name: Create Archive
if: ${{ inputs.BuildArchive }}
Expand Down
26 changes: 20 additions & 6 deletions .github/workflows/build-windows-pupnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ on:
required: false
description: "The version of the application to build"
default: "1.0.0"
PupNetVersion:
PupNetRepo:
type: string
required: false
description: "The PupNet version to use"
default: "1.6.0"
description: "The URL of the PupNet repository"
default: "https://github.com/kuiperzone/PupNet-Deploy.git"
PupNetBranch:
type: string
required: false
description: "The branch or commit of PupNet to use"
default: "dabed0cc2063c5a2d2c4f780bb6718f4b90cfd16"
ProjectFile:
type: string
required: true
Expand Down Expand Up @@ -84,8 +89,17 @@ jobs:
- name: Print debug info
run: dotnet --info

- name: Get PupNet
run: dotnet tool install -g KuiperZone.PupNet --version ${{ inputs.PupNetVersion }}
- name: Build & Install PupNet
run: |
# Our use of central package management may cause PupNet to fail build
# so we lift it out to a separate directory and build it there
mkdir ../PupNet
cd ../PupNet
git clone ${{ inputs.PupNetRepo }} .
git checkout ${{ inputs.PupNetBranch }}
dotnet build -c Release
cd PupNet/bin/Release/net8.0
dotnet tool install --global --add-source . KuiperZone.PupNet
- name: Download CodeSignTool
id: downloadCodeSignTool
Expand Down Expand Up @@ -151,4 +165,4 @@ jobs:
name: ${{ steps.setOutputs.outputs.artifactNameWindowsInnoSetup }}
path: ${{ steps.transformInputs.outputs.projectDir }}/Deploy/OUT/*.exe
if-no-files-found: error
retention-days: ${{ inputs.RetentionDays }}
retention-days: ${{ inputs.RetentionDays }}

0 comments on commit 4c5b629

Please sign in to comment.