feat: ship the Furumi OpenDeck plugin for Windows, macOS and Linux
This commit is contained in:
1 parent
57e60a7fe3
commit
79df5edd8c
72 files changed
+9785
-71
No files matched your search
@@ -13,6 +13,9 @@ env:
|
||||
CARGO_NET_RETRY: 10
|
||||
|
||||
jobs:
|
||||
build-opendeck:
|
||||
uses: ./.github/workflows/opendeck.yml
|
||||
|
||||
build:
|
||||
name: Build ${{ matrix.asset_name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
@@ -48,7 +51,7 @@ jobs:
|
||||
run: cargo fetch --locked
|
||||
|
||||
- name: Build
|
||||
run: cargo build --release --locked --offline
|
||||
run: cargo build -p furumi_tui --release --locked --offline
|
||||
|
||||
- name: Package
|
||||
shell: bash
|
||||
@@ -81,7 +84,7 @@ jobs:
|
||||
concurrency:
|
||||
group: release-assets-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
needs: build
|
||||
needs: [build, build-opendeck]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -92,7 +95,9 @@ jobs:
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: furumi-*
|
||||
path: artifacts
|
||||
merge-multiple: true
|
||||
|
||||
- name: Create release and upload assets
|
||||
env:
|
||||
@@ -101,7 +106,18 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
archives=(artifacts/*/*)
|
||||
version="${RELEASE_TAG#v}"
|
||||
archives=(
|
||||
"artifacts/furumi-linux-x86_64-$version.tar.gz"
|
||||
"artifacts/furumi-macos-aarch64-$version.tar.gz"
|
||||
"artifacts/furumi-windows-x86_64-$version.zip"
|
||||
"artifacts/furumi-opendeck-windows-$version.zip"
|
||||
"artifacts/furumi-opendeck-macos-$version.zip"
|
||||
"artifacts/furumi-opendeck-linux-$version.zip"
|
||||
)
|
||||
for archive in "${archives[@]}"; do
|
||||
[[ -s "$archive" ]] || { echo "::error::Missing release archive $archive"; exit 1; }
|
||||
done
|
||||
assets=$(mktemp)
|
||||
if ! gh release view "$RELEASE_TAG" --json assets --jq '.assets[].name' > "$assets"; then
|
||||
for archive in "${archives[@]}"; do
|
||||
|
||||
Reference in new issue
Block a user