Skip to content

Commit

Permalink
ci: make canary run --arch=universal on macOS (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao authored Jul 31, 2023
1 parent 741f3c3 commit 6430d3f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: electron-nightly Canary

on:
schedule:
- cron: '15 8 * * *'
- cron: "15 8 * * *"

jobs:
build:
Expand All @@ -12,13 +12,13 @@ jobs:
os: [windows-latest, macOS-latest, ubuntu-latest]

steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # tag: v3.5.3
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # tag: v3.5.3
with:
repository: electron/electron-quick-start
ref: refs/heads/main
path: electron-quick-start
- name: Use Node.js 14.x
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag: v3.7.0
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag: v3.7.0
with:
node-version: 14.x
- name: Replace electron with electron-nightly
Expand All @@ -31,7 +31,13 @@ jobs:
run: |
cd electron-quick-start
npm install --save-dev electron-packager@electron/electron-packager
shell: bash
- name: Package
run: |
cd electron-quick-start
node_modules/.bin/electron-packager . --arch=all
if [ "${{ matrix.os }}" == "macOS-latest" ]; then
node_modules/.bin/electron-packager . --arch=universal
else
node_modules/.bin/electron-packager . --arch=all
fi
shell: bash

0 comments on commit 6430d3f

Please sign in to comment.