From 8a089ca5731152ce0e5e0cee74ba5ff25d63da95 Mon Sep 17 00:00:00 2001 From: Lennard Kittner Date: Thu, 19 Mar 2026 19:03:10 +0100 Subject: [PATCH] Update workflow to build windows and tray on MacOS --- .github/workflows/publish-release.yml | 39 ++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 0a9a0e6..2154912 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -39,21 +39,47 @@ jobs: with: submodules: recursive - name: Build release binaries - run: cargo build --release --bin hyper_headset_cli + run: | + cargo build --release --bin hyper_headset_cli + cargo build --release --bin hyper_headset - name: Create zip run: | mkdir -p dist + cp target/release/hyper_headset dist/ cp target/release/hyper_headset_cli dist/ - cd dist && zip hyper_headset_MacOS.zip hyper_headset_cli + cd dist && zip hyper_headset_MacOS.zip hyper_headset hyper_headset_cli - name: Upload zip artifact uses: actions/upload-artifact@v4 with: name: hyper_headset_MacOS path: dist/hyper_headset_MacOS.zip + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + - name: Build release binaries + run: | + cargo build --release --bin hyper_headset_cli + cargo build --release --bin hyper_headset + - name: Create zip + shell: pwsh + run: | + New-Item -ItemType Directory -Force dist + Copy-Item target/release/hyper_headset.exe dist/ + Copy-Item target/release/hyper_headset_cli.exe dist/ + Compress-Archive -Path dist/* -DestinationPath dist/hyper_headset_Windows.zip + - name: Upload zip artifact + uses: actions/upload-artifact@v4 + with: + name: hyper_headset_Windows + path: dist/hyper_headset_Windows.zip + publish-aur: runs-on: ubuntu-latest - needs: [build-linux, build-macos] + needs: [build-linux, build-macos, build-windows] permissions: contents: write steps: @@ -71,6 +97,12 @@ jobs: name: hyper_headset_MacOS path: dist/ + - name: Download Windows zip artifact + uses: actions/download-artifact@v4 + with: + name: hyper_headset_Windows + path: dist/ + - name: Create GitHub Release and upload zip uses: softprops/action-gh-release@v2 with: @@ -78,6 +110,7 @@ jobs: files: | dist/hyper_headset_Linux.zip dist/hyper_headset_MacOS.zip + dist/hyper_headset_Windows.zip - name: Compute checksums id: checksums