Update workflow to build windows and tray on MacOS
This commit is contained in:
39
.github/workflows/publish-release.yml
vendored
39
.github/workflows/publish-release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user