-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8e4a87
commit 02dd332
Showing
4 changed files
with
228 additions
and
882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
Oops, something went wrong.