-
-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (40 loc) · 1.27 KB
/
canary.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: electron-nightly Canary
on:
schedule:
- cron: "15 8 * * *"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macOS-latest, ubuntu-latest]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
with:
repository: electron/electron-quick-start
ref: refs/heads/main
path: electron-quick-start
- name: Setup Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # tag: v4.0.3
with:
node-version: lts/*
- name: Replace electron with electron-nightly
run: |
cd electron-quick-start
npm uninstall --save-dev electron
npm install --save-dev electron-nightly@latest
shell: bash
- name: Install Electron Packager
run: |
cd electron-quick-start
npm install --save-dev @electron/packager@electron/packager
shell: bash
- name: Package
run: |
cd electron-quick-start
if [ "${{ matrix.os }}" == "macOS-latest" ]; then
node_modules/.bin/electron-packager . --arch=universal
else
node_modules/.bin/electron-packager . --arch=all
fi
shell: bash