File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 65
65
- uses : actions/setup-node@v4
66
66
with :
67
67
node-version : ${{ matrix.node }}
68
- architecture : ${{ matrix.host }}
68
+ architecture : ${{ matrix.target }}
69
69
70
70
- name : Install dependencies
71
71
run : yarn install --network-timeout 300000
86
86
# github endpoints hang up quite a bit, add one retry.
87
87
run : yarn run electron:ci || yarn run electron:ci
88
88
env :
89
+ TARGET_ARCH : ${{ matrix.target }}
89
90
GITHUB_TOKEN : ${{ github.token }}
90
91
DEBUG : electron-builder
91
92
APPLE_ID : ${{ secrets.APPLE_ID }}
96
97
97
98
- uses : actions/upload-artifact@v4
98
99
with :
99
- name : ${{ matrix.os }}-${{ matrix.host }}
100
+ name : ${{ matrix.os }}-${{ matrix.host }}-${{ matrix.target }}
100
101
path : dist/grist-electron-*
101
102
if-no-files-found : " error"
Original file line number Diff line number Diff line change 23
23
"electron:preview" : " electron core/_build/ext/app/electron/main.js" ,
24
24
"electron:dir" : " electron-builder build --linux --dir" ,
25
25
"electron:linux" : " electron-builder build --linux" ,
26
- "electron:ci" : " electron-builder build --publish always " ,
26
+ "electron:ci" : " ./scripts/ci.sh " ,
27
27
"electron" : " electron-builder build --publish never" ,
28
28
"test" : " cd core && rm -f junk.db && node _build/app/server/companion.js sqlite gristify junk.db && ls junk.db"
29
29
},
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ case $TARGET_ARCH in
6
+ " x86" )
7
+ ARCHFLAG=" --ia32"
8
+ ;;
9
+ " x64" )
10
+ ARCHFLAG=" --x64"
11
+ ;;
12
+ * )
13
+ echo " Target architecture $TARGET_ARCH not supported"
14
+ exit 1
15
+ ;;
16
+ esac
17
+
18
+ electron-builder build $ARCHFLAG --publish always
You can’t perform that action at this time.
0 commit comments