-
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from iamimmanuelraj/master
- Loading branch information
Showing
5 changed files
with
58 additions
and
41 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
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 |
---|---|---|
|
@@ -9,6 +9,8 @@ on: | |
types: | ||
- published | ||
- prereleased | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-x64: | ||
runs-on: ubuntu-latest | ||
|
@@ -24,9 +26,12 @@ jobs: | |
run: dotnet restore -r linux-x64 --configfile GalaxyBudsClient/nuget.config GalaxyBudsClient/GalaxyBudsClient.csproj | ||
- name: Build x64 | ||
run: dotnet publish -r linux-x64 -o bin_linux64 -c Release -p:PublishTrimmed=true -p:PublishSingleFile=true --self-contained true --no-restore GalaxyBudsClient/GalaxyBudsClient.csproj | ||
|
||
|
||
- name: Change Permissions | ||
run: cd bin_linux64 && chmod +x GalaxyBudsClient | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2.2.2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_linux-amd64_portable | ||
path: bin_linux64/GalaxyBudsClient | ||
|
@@ -35,19 +40,22 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.101 | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore -r linux-musl-x64 --configfile GalaxyBudsClient/nuget.config GalaxyBudsClient/GalaxyBudsClient.csproj | ||
- name: Build x64 musl | ||
run: dotnet publish -r linux-musl-x64 -o bin_linux64_musl -c Release -p:PublishTrimmed=true -p:PublishSingleFile=true --self-contained true --no-restore GalaxyBudsClient/GalaxyBudsClient.csproj | ||
|
||
|
||
- name: Change Permissions | ||
run: cd bin_linux64_musl && chmod +x GalaxyBudsClient | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2.2.2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_linux-amd64-musl_portable | ||
path: bin_linux64_musl/GalaxyBudsClient | ||
|
@@ -56,19 +64,22 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.101 | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore -r linux-arm --configfile GalaxyBudsClient/nuget.config GalaxyBudsClient/GalaxyBudsClient.csproj | ||
- name: Build arm | ||
run: dotnet publish -r linux-arm -o bin_linux_arm -c Release -p:PublishTrimmed=true -p:PublishSingleFile=true --self-contained true --no-restore GalaxyBudsClient/GalaxyBudsClient.csproj | ||
|
||
|
||
- name: Change Permissions | ||
run: cd bin_linux_arm && chmod +x GalaxyBudsClient | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2.2.2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_linux-arm_portable | ||
path: bin_linux_arm/GalaxyBudsClient | ||
|
@@ -77,19 +88,22 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.101 | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore -r linux-arm64 --configfile GalaxyBudsClient/nuget.config GalaxyBudsClient/GalaxyBudsClient.csproj | ||
- name: Build arm64 | ||
run: dotnet publish -r linux-arm64 -o bin_linux_arm64 -c Release -p:PublishTrimmed=true -p:PublishSingleFile=true --self-contained true --no-restore GalaxyBudsClient/GalaxyBudsClient.csproj | ||
|
||
|
||
- name: Change Permissions | ||
run: cd bin_linux_arm64 && chmod +x GalaxyBudsClient | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2.2.2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_linux-arm64_portable | ||
path: bin_linux_arm64/GalaxyBudsClient | ||
|
@@ -102,31 +116,31 @@ jobs: | |
|
||
steps: | ||
- name: Download setup artifact (x64) | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_linux-amd64_portable | ||
|
||
- name: Rename (x64) | ||
run: ren GalaxyBudsClient GalaxyBudsClient_Linux_64bit_Portable.bin | ||
|
||
- name: Download setup artifact (x64-musl) | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_linux-amd64-musl_portable | ||
|
||
- name: Rename (x64-musl) | ||
run: ren GalaxyBudsClient GalaxyBudsClient_Linux_64bit-musl_Portable.bin | ||
|
||
- name: Download artifact (arm) | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_linux-arm_portable | ||
|
||
- name: Rename (arm) | ||
run: ren GalaxyBudsClient GalaxyBudsClient_Linux_arm_Portable.bin | ||
|
||
- name: Download artifact (arm64) | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_linux-arm64_portable | ||
|
||
|
@@ -136,4 +150,4 @@ jobs: | |
- uses: AButler/[email protected] | ||
with: | ||
files: '*.bin' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
repo-token: ${{ secrets.GH_TOKEN }} |
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 |
---|---|---|
|
@@ -9,15 +9,16 @@ on: | |
types: | ||
- published | ||
- prereleased | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-x64: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.101 | ||
|
||
|
@@ -36,7 +37,7 @@ jobs: | |
# timestamp-server: http://timestamp.digicert.com | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2.2.2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_win64_portable | ||
path: bin_win64/ | ||
|
@@ -45,9 +46,9 @@ jobs: | |
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.101 | ||
|
||
|
@@ -57,7 +58,7 @@ jobs: | |
run: dotnet publish -r win-x86 -o bin_win32 -c Release -p:PublishSingleFile=true --self-contained true --no-restore GalaxyBudsClient/GalaxyBudsClient.csproj | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2.2.2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_win32_portable | ||
path: bin_win32/ | ||
|
@@ -68,33 +69,33 @@ jobs: | |
needs: [build-x64, build-x86] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Prepare version information (1/3) | ||
uses: oprypin/find-latest-tag@v1 | ||
with: | ||
repository: ThePBone/GalaxyBudsClient | ||
releases-only: true | ||
id: last_release | ||
- name: Prepare version information (2/3) | ||
uses: benjlevesque/short-sha@v1.2 | ||
uses: benjlevesque/short-sha@v2.1 | ||
id: short-sha | ||
with: | ||
length: 6 | ||
- name: Prepare version information (3/3) | ||
run: echo '::set-output name=version::${{steps.last_release.outputs.tag}}-${{steps.short-sha.outputs.sha}}' | ||
run: echo '{name}={${{steps.last_release.outputs.tag}}-${{steps.short-sha.outputs.sha}}}' >> $GITHUB_OUTPUT | ||
id: version | ||
|
||
# Make x64 installer | ||
- name: Download artifact (x64) | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_win64_portable | ||
|
||
- name: Rename artifact (x64) | ||
run: ren GalaxyBudsClient.exe "Galaxy Buds Client.exe" | ||
|
||
- name: Create nsis installer (x64) | ||
uses: joncloud/makensis-action@v3.3 | ||
uses: joncloud/makensis-action@v3.7 | ||
with: | ||
script-file: "install.nsi" | ||
arguments: "-DBASE_DIR=\"D:\\a\\GalaxyBudsClient\\GalaxyBudsClient\" -DPRODUCT_VERSION=\"${{steps.version.outputs.version}}\" -DPRODUCT_ARCH=\"64bit\"" | ||
|
@@ -109,7 +110,7 @@ jobs: | |
# timestamp-server: http://timestamp.digicert.com | ||
|
||
- name: Upload artifact (x64) | ||
uses: actions/upload-artifact@v2.2.2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_Setup_64bit_${{steps.version.outputs.version}}.exe | ||
path: GalaxyBudsClient_Setup_64bit_${{steps.version.outputs.version}}.exe | ||
|
@@ -119,15 +120,15 @@ jobs: | |
|
||
# Make x86 installer | ||
- name: Download artifact (x86) | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_win32_portable | ||
|
||
- name: Rename artifact (x86) | ||
run: ren GalaxyBudsClient.exe "Galaxy Buds Client.exe" | ||
|
||
- name: Create nsis installer (x86) | ||
uses: joncloud/makensis-action@v3.3 | ||
uses: joncloud/makensis-action@v3.7 | ||
with: | ||
script-file: "install.nsi" | ||
arguments: "-DBASE_DIR=\"D:\\a\\GalaxyBudsClient\\GalaxyBudsClient\" -DPRODUCT_VERSION=\"${{steps.version.outputs.version}}\" -DPRODUCT_ARCH=\"32bit\"" | ||
|
@@ -142,7 +143,7 @@ jobs: | |
# timestamp-server: http://timestamp.digicert.com | ||
|
||
- name: Upload artifact (x86) | ||
uses: actions/upload-artifact@v2.2.2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_Setup_32bit_${{steps.version.outputs.version}}.exe | ||
path: GalaxyBudsClient_Setup_32bit_${{steps.version.outputs.version}}.exe | ||
|
@@ -161,16 +162,16 @@ jobs: | |
id: last_release | ||
|
||
- name: Prepare version information (2/3) | ||
uses: benjlevesque/short-sha@v1.2 | ||
uses: benjlevesque/short-sha@v2.1 | ||
id: short-sha | ||
with: | ||
length: 6 | ||
- name: Prepare version information (3/3) | ||
run: echo '::set-output name=version::${{steps.last_release.outputs.tag}}-${{steps.short-sha.outputs.sha}}' | ||
run: echo '{name}={${{steps.last_release.outputs.tag}}-${{steps.short-sha.outputs.sha}}}' >> $GITHUB_OUTPUT | ||
id: version | ||
|
||
- name: Download setup artifact (x64) | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: GalaxyBudsClient_Setup_64bit_${{steps.version.outputs.version}}.exe | ||
|
||
|
@@ -180,7 +181,7 @@ jobs: | |
- uses: AButler/[email protected] | ||
with: | ||
files: '*.exe' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
repo-token: ${{ secrets.GH_TOKEN }} | ||
|
||
|
||
|
||
|
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 |
---|---|---|
|
@@ -3,13 +3,15 @@ name: Sentry release | |
on: | ||
release: | ||
types: [published, prereleased] | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
sentry: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Create Sentry Release | ||
uses: getsentry/[email protected] | ||
env: | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run XAML validator | ||
uses: ThePBone/[email protected] | ||
|