Skip to content

Commit

Permalink
Switch to PupNet
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnoyingRain5 committed Nov 29, 2023
1 parent a8e4a87 commit 02dd332
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 882 deletions.
71 changes: 42 additions & 29 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,61 @@ on:
branches: [ "main" ]

jobs:
build-ubuntu:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --use-current-runtime CrankItUp.Desktop
- name: Test
run: dotnet test --no-build --verbosity normal CrankItUp.Desktop
- name: Upload a Build Artifact
- name: Get flatpak-builder
run: DEBIAN_FRONTEND=noninteractive apt -y install flatpak-builder flatpak
- name: Get Flatpak freedesktop SDK
run: flatpak install flathub org.freedesktop.Platform//22.08 org.freedesktop.Sdk//22.08
- name: Get PupNet
run: dotnet tool install -g KuiperZone.PupNet
- name: Build RPM
run: pupnet -y -k rpm -o CrankItUp.rpm
- name: Build deb
run: pupnet -y -k deb -o CrankItUp.deb
- name: Build Appimage
run: pupnet -y -k appimage -o CrankItUp.appimage
- name: Build flatpak
run: pupnet -y -k flatpak -o CrankItUp.flatpak
- name: Build zip
run: pupnet -y -k zip -o CrankItUp.zip

- name: Upload RPM
uses: actions/[email protected]
with:
name: CrankItUp-Linux
path: CrankItUp.Desktop/bin/Debug/net6.0/*
name: CrankItUp.rpm
path: CrankItUp.Desktop/Deploy/bin/CrankItUp.rpm

build-appimage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Upload deb
uses: actions/[email protected]
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Download appimagetool
run: cd CrankitUp.Desktop && wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
- name: Prepare
run: chmod +x publish-appimage && chmod a+x appimagetool-x86_64.AppImage
- name: Build
run: ./publish-appimage -y
- name: Upload a Build Artifact
name: CrankItUp.deb
path: CrankItUp.Desktop/Deploy/bin/CrankItUp.deb

- name: Upload appimage
uses: actions/[email protected]
with:
name: CrankItUp-Appimage
path: CrankItUp.Desktop/Appimages/CrankItUp-x86_64.AppImage

name: CrankItUp.appimage
path: CrankItUp.Desktop/Deploy/bin/CrankItUp.appimage

- name: Upload flatpak
uses: actions/[email protected]
with:
name: CrankItUp.flatpak
path: CrankItUp.Desktop/Deploy/bin/CrankItUp.flatpak

- name: Upload zip
uses: actions/[email protected]
with:
name: CrankItUp.zip
path: CrankItUp.Desktop/Deploy/bin/CrankItUp.zip

build-windows:
runs-on: windows-latest
steps:
Expand Down
Loading

0 comments on commit 02dd332

Please sign in to comment.