Skip to content

Commit 9190dc5

Browse files
committed
up
1 parent 1bbef1a commit 9190dc5

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- 'v*.*.*'
7+
branches:
8+
- 'wm-*'
79
schedule:
810
- cron: '0 0 * * *' # Daily at midnight UTC
911
workflow_dispatch:
@@ -83,7 +85,7 @@ jobs:
8385
uses: dtolnay/rust-toolchain@stable
8486

8587
- name: Install Zig
86-
if: matrix.platform == 'ubuntu-22.04'
88+
if: runner.os == 'Linux' && runner.arch == 'X64'
8789
shell: bash
8890
run: |
8991
wget -q https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz
@@ -92,7 +94,7 @@ jobs:
9294
echo "/usr/local/zig" >> $GITHUB_PATH
9395
9496
- name: Install zigbuild
95-
if: matrix.platform == 'ubuntu-22.04'
97+
if: runner.os == 'Linux' && runner.arch == 'X64'
9698
run: cargo install --locked cargo-zigbuild
9799

98100
- name: Rust cache
@@ -103,7 +105,7 @@ jobs:
103105
key: ${{ matrix.platform }}
104106

105107
- name: Install Linux dependencies
106-
if: startsWith(matrix.platform, 'ubuntu')
108+
if: runner.os == 'Linux'
107109
shell: bash
108110
run: |
109111
sudo apt-get update
@@ -115,6 +117,15 @@ jobs:
115117
patchelf \
116118
xdg-utils
117119
120+
- name: Verify xdg-open installation
121+
if: runner.os == 'Linux'
122+
shell: bash
123+
run: |
124+
echo "Checking for xdg-open..."
125+
which xdg-open || echo "xdg-open not found in PATH"
126+
ls -la /usr/bin/xdg-open || echo "/usr/bin/xdg-open not found"
127+
dpkg -L xdg-utils | grep xdg-open || echo "xdg-open not in xdg-utils package"
128+
118129
- name: Install Tauri CLI
119130
shell: bash
120131
run: |
@@ -126,7 +137,7 @@ jobs:
126137
fi
127138
128139
- name: Install Apple certificate
129-
if: startsWith(matrix.platform, 'macos')
140+
if: runner.os == 'macOS'
130141
env:
131142
P12_BASE64: ${{ secrets.APPLE_CERTIFICATE_P12_BASE64 }}
132143
P12_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
@@ -167,14 +178,14 @@ jobs:
167178
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
168179
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
169180
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
170-
NO_STRIP: ${{ matrix.platform == 'ubuntu-22.04-arm' && 'true' || '' }}
181+
NO_STRIP: ${{ runner.os == 'Linux' && runner.arch == 'ARM64' && 'true' || '' }}
171182
with:
172183
args: --target ${{ matrix.gui_target }}
173184
tagName: ${{ needs.ensure-release.outputs.release-name }}
174185
assetNamePattern: "tidewave-app-[arch][ext]"
175186

176187
- name: Verify GUI notarization (macos)
177-
if: startsWith(matrix.platform, 'macos')
188+
if: runner.os == 'macOS'
178189
shell: bash
179190
run: |
180191
app_path="target/${{ matrix.gui_target }}/release/bundle/macos/tidewave.app"
@@ -197,7 +208,7 @@ jobs:
197208
done
198209
199210
- name: Sign CLI binaries (macos)
200-
if: startsWith(matrix.platform, 'macos') && matrix.cli_targets != ''
211+
if: runner.os == 'macOS' && matrix.cli_targets != ''
201212
shell: bash
202213
env:
203214
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
@@ -228,7 +239,7 @@ jobs:
228239
done
229240
230241
- name: Sign CLI binaries (windows)
231-
if: startsWith(matrix.platform, 'windows')
242+
if: runner.os == 'Windows'
232243
uses: azure/[email protected]
233244
with:
234245
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
@@ -254,7 +265,7 @@ jobs:
254265
for target in ${{ matrix.cli_targets }}; do
255266
src_path="target/$target/release/tidewave"
256267
dst_path="tidewave-cli-$target"
257-
if [[ "${{ matrix.platform }}" = windows* ]]; then
268+
if [[ "${{ runner.os }}" == "Windows" ]]; then
258269
src_path="$src_path.exe"
259270
dst_path="$dst_path.exe"
260271
fi

0 commit comments

Comments
 (0)