-
-
Notifications
You must be signed in to change notification settings - Fork 7
102 lines (91 loc) · 2.6 KB
/
package.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Packaging
on:
workflow_dispatch:
push:
branches:
- package
tags:
- '*'
env:
FORCE_COLOR: 1
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-14
- ubuntu-20.04
- windows-latest
host:
- x64
target:
- x64
node:
- 18
include:
- os: windows-latest
node: 18
host: x86
target: x86
- os: macos-14
node: 18
host: arm64
target: arm64
name: ${{ matrix.os }} (node=${{ matrix.node }}, host=${{ matrix.host }}, target=${{ matrix.target }})
steps:
- name: association
if: contains(matrix.os, 'windows')
run: |
ls
ls "c:\\"
ls "c:\\Program Files"
ls "c:\\Program Files/Git"
ls "c:\\Program Files/Git/bin"
cmd /c assoc .sh=bashscript
cmd /c ftype bashscript="%ProgramFiles%\Git\bin\bash.exe" "%1"
cmd /c ftype
- uses: actions/checkout@v4
with:
submodules: true
- name: Submodule cleanup fix # See https://github.com/actions/checkout/issues/358
run: |
git submodule foreach --recursive git clean -ffdx
git submodule foreach --recursive git reset --hard
- name: check bash
run: yarn run check:bash:ci
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
architecture: ${{ matrix.host }}
- name: Add yarn
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
run: npm install -g yarn
- name: Install dependencies
run: yarn install --network-timeout 300000
- name: Hooks and crooks
run: yarn run setup
env:
RUN_OS: ${{ matrix.os }}
RUN_ARCH: ${{ matrix.target }}
- name: Build
run: yarn run build
- name: Test
run: yarn run test
- name: Package
# github endpoints hang up quite a bit, add one retry.
run: yarn run electron:ci || yarn run electron:ci
env:
GITHUB_TOKEN: ${{ github.token }}
DEBUG: electron-builder
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}