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:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Build release binaries
|
- 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
|
- name: Create zip
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
cp target/release/hyper_headset dist/
|
||||||
cp target/release/hyper_headset_cli 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
|
- name: Upload zip artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: hyper_headset_MacOS
|
name: hyper_headset_MacOS
|
||||||
path: dist/hyper_headset_MacOS.zip
|
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:
|
publish-aur:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-linux, build-macos]
|
needs: [build-linux, build-macos, build-windows]
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
@@ -71,6 +97,12 @@ jobs:
|
|||||||
name: hyper_headset_MacOS
|
name: hyper_headset_MacOS
|
||||||
path: dist/
|
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
|
- name: Create GitHub Release and upload zip
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
@@ -78,6 +110,7 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
dist/hyper_headset_Linux.zip
|
dist/hyper_headset_Linux.zip
|
||||||
dist/hyper_headset_MacOS.zip
|
dist/hyper_headset_MacOS.zip
|
||||||
|
dist/hyper_headset_Windows.zip
|
||||||
|
|
||||||
- name: Compute checksums
|
- name: Compute checksums
|
||||||
id: checksums
|
id: checksums
|
||||||
|
|||||||
Reference in New Issue
Block a user