Skip to content

Commit

Permalink
Merge pull request #381 from iamimmanuelraj/master
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb authored Feb 4, 2024
2 parents 6f9dccc + a52d120 commit 98320df
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
- name: 'Auto-assign issue'
uses: pozil/auto-assign-issue@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GH_TOKEN }}
assignees: ThePBone
52 changes: 33 additions & 19 deletions .github/workflows/compile-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
types:
- published
- prereleased
workflow_dispatch:

jobs:
build-x64:
runs-on: ubuntu-latest
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand All @@ -136,4 +150,4 @@ jobs:
- uses: AButler/[email protected]
with:
files: '*.bin'
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GH_TOKEN }}
39 changes: 20 additions & 19 deletions .github/workflows/compile-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/
Expand All @@ -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

Expand All @@ -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/
Expand All @@ -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\""
Expand All @@ -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
Expand All @@ -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\""
Expand All @@ -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
Expand All @@ -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

Expand All @@ -180,7 +181,7 @@ jobs:
- uses: AButler/[email protected]
with:
files: '*.exe'
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GH_TOKEN }}



Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/sentry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/translation-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Run XAML validator
uses: ThePBone/[email protected]
Expand Down

0 comments on commit 98320df

Please sign in to comment.