Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit d40f250

Browse files
committed
separate x64 and arm64 builds in CI
1 parent 63d72fe commit d40f250

1 file changed

Lines changed: 29 additions & 3 deletions

File tree

.github/workflows/release-app.yml

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- releases/terminalone/app
66
jobs:
7-
build_on_win:
7+
build_win_x64:
88
runs-on: windows-latest
99
env:
1010
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -31,7 +31,7 @@ jobs:
3131
run: npm ci
3232
- name: build for windows
3333
run: npm run publish:app:windows:x64
34-
build_on_mac:
34+
build_mac_x64:
3535
runs-on: macos-latest
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -59,9 +59,35 @@ jobs:
5959
run: npm ci
6060
- name: build for mac x64
6161
run: npm run publish:app:mac:x64
62+
build_mac_arm64:
63+
runs-on: macos-latest
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
CSC_LINK: ${{ secrets.CSC_LINK }}
67+
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
68+
APPLE_ID: ${{ secrets.APPLE_ID }}
69+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
70+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
71+
steps:
72+
- name: setup python
73+
uses: actions/setup-python@v5
74+
with:
75+
python-version: 3.7
76+
- name: checkout
77+
uses: actions/checkout@v4
78+
- name: setup node
79+
uses: actions/setup-node@v4
80+
with:
81+
node-version: 18.x
82+
- name: install node-gyp
83+
run: npm i -g node-gyp@latest
84+
- name: clean npm cache
85+
run: npm cache clean -f
86+
- name: install dependencies
87+
run: npm ci
6288
- name: build for mac arm64
6389
run: npm run publish:app:mac:arm64
64-
build_on_linux:
90+
build_linux_x64:
6591
runs-on: ubuntu-latest
6692
env:
6793
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)