File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,18 +88,22 @@ jobs:
8888 pnpm --filter @posthog/agent run build
8989
9090 - name : Build app
91+ env :
92+ MATRIX_ARCH : ${{ matrix.arch }}
9193 working-directory : apps/code
9294 run : |
9395 pnpm exec electron-vite build
94- if [[ "${{ matrix.arch }} " == "arm64" ]]; then
96+ if [[ "$MATRIX_ARCH " == "arm64" ]]; then
9597 pnpm exec electron-builder build --mac --arm64 --publish never --config electron-builder.ts
9698 else
9799 pnpm exec electron-builder build --mac --x64 --publish never --config electron-builder.ts
98100 fi
99101
100102 - name : Verify package
103+ env :
104+ MATRIX_ARCH : ${{ matrix.arch }}
101105 run : |
102- if [[ "${{ matrix.arch }} " == "arm64" ]]; then
106+ if [[ "$MATRIX_ARCH " == "arm64" ]]; then
103107 APP_BUNDLE="apps/code/out/mac-arm64/PostHog Code.app"
104108 else
105109 APP_BUNDLE="apps/code/out/mac/PostHog Code.app"
@@ -265,10 +269,12 @@ jobs:
265269 pnpm --filter @posthog/agent run build
266270
267271 - name : Build app
272+ env :
273+ MATRIX_ARCH : ${{ matrix.arch }}
268274 working-directory : apps/code
269275 run : |
270276 pnpm exec electron-vite build
271- if [[ "${{ matrix.arch }} " == "arm64" ]]; then
277+ if [[ "$MATRIX_ARCH " == "arm64" ]]; then
272278 pnpm exec electron-builder build --linux --arm64 --publish never --config electron-builder.ts
273279 else
274280 pnpm exec electron-builder build --linux --x64 --publish never --config electron-builder.ts
You can’t perform that action at this time.
0 commit comments