Skip to content

Commit 4c645a3

Browse files
sovanesyanclaude
andcommitted
Fix release workflow: skip hotkey helper on Linux
The swiftc compiler is only available on macOS runners. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2b6dcdc commit 4c645a3

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,24 @@ jobs:
3232
run: cargo build --release --target ${{ matrix.target }}
3333

3434
- name: Build hotkey helper
35+
if: runner.os == 'macOS'
3536
run: swiftc -O swift/main.swift -o calendarchy-hotkey
3637

37-
- name: Package
38+
- name: Package (macOS)
39+
if: runner.os == 'macOS'
3840
run: |
3941
cp calendarchy-hotkey target/${{ matrix.target }}/release/
4042
cd target/${{ matrix.target }}/release
4143
tar czf ../../../calendarchy-${{ matrix.target }}.tar.gz calendarchy calendarchy-hotkey
4244
cd ../../..
4345
46+
- name: Package (Linux)
47+
if: runner.os == 'Linux'
48+
run: |
49+
cd target/${{ matrix.target }}/release
50+
tar czf ../../../calendarchy-${{ matrix.target }}.tar.gz calendarchy
51+
cd ../../..
52+
4453
- name: Upload artifact
4554
uses: actions/upload-artifact@v4
4655
with:

0 commit comments

Comments
 (0)