Skip to content

Commit f15de18

Browse files
committed
🤖 Use Depot cache for all CI jobs + centralize ImageMagick
- Release workflow now uses depot-macos-15 (was macos-latest) - Release macOS builds now use parallel arch builds (same as build.yml) - ImageMagick install centralized to setup-cmux action for both macOS and Linux - Removed duplicate ImageMagick installs from build.yml and release.yml All CI pipelines now benefit from Depot's 10x faster cache (1000 MiB/s vs 125 MB/s).
1 parent f8fe1df commit f15de18

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

.github/actions/setup-cmux/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,15 @@ runs:
4242
else
4343
echo "ImageMagick already installed (cached)"
4444
fi
45+
46+
- name: Install ImageMagick (Linux)
47+
if: runner.os == 'Linux'
48+
shell: bash
49+
run: |
50+
if ! command -v convert &> /dev/null; then
51+
echo "Installing ImageMagick..."
52+
sudo apt-get update -qq
53+
sudo apt-get install -y imagemagick
54+
else
55+
echo "ImageMagick already installed"
56+
fi

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ jobs:
5656

5757
- uses: ./.github/actions/setup-cmux
5858

59-
- name: Install ImageMagick
60-
run: sudo apt-get update && sudo apt-get install -y imagemagick
61-
6259
- name: Build application
6360
run: bun run build
6461

.github/workflows/release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ permissions:
1010
jobs:
1111
build-macos:
1212
name: Build and Release macOS
13-
runs-on: macos-latest
13+
runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-15' || 'macos-latest' }}
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
1717

1818
- uses: ./.github/actions/setup-cmux
1919

20-
- name: Install ImageMagick
21-
run: brew install imagemagick
22-
2320
- name: Build application
2421
run: bun run build
2522

@@ -32,8 +29,13 @@ jobs:
3229
AC_APIKEY_ID: ${{ secrets.AC_APIKEY_ID }}
3330
AC_APIKEY_ISSUER_ID: ${{ secrets.AC_APIKEY_ISSUER_ID }}
3431

35-
- name: Package and publish for macOS
36-
run: bun x electron-builder --mac --publish always
32+
- name: Package and publish for macOS (x64)
33+
run: bun x electron-builder --mac --x64 --publish always
34+
env:
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Package and publish for macOS (arm64)
38+
run: bun x electron-builder --mac --arm64 --publish always
3739
env:
3840
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3941

@@ -46,9 +48,6 @@ jobs:
4648

4749
- uses: ./.github/actions/setup-cmux
4850

49-
- name: Install ImageMagick
50-
run: sudo apt-get update && sudo apt-get install -y imagemagick
51-
5251
- name: Build application
5352
run: bun run build
5453

0 commit comments

Comments
 (0)