Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: make canary run --arch=universal on macOS #1539

Merged
merged 5 commits into from Jul 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/canary.yml
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