-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (40 loc) · 1.36 KB
/
windows-build.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
name: windows-build
on: workflow_dispatch
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- uses: lukka/get-cmake@latest
with:
cmakeVersion: "~3.25.0" # <--= optional, use most recent 3.25.x version
ninjaVersion: "^1.11.1"
- uses: actions/setup-node@v4
with:
node-version: '21'
- run: npm install -g win-node-env
- name: Install NASM
uses: ilammy/setup-nasm@v1
- name: build child app
run: |
cd gui
yarn install
set NODE_OPTIONS=--max_old_space_size=4096 && yarn build:apps
- name: build ztm
run: |
./build.cmd
copy ./bin/ztm.exe './gui/src-tauri/bin/ztmctl-x86_64-pc-windows-msvc.exe'
- name: build app
run: |
cd gui
set NODE_OPTIONS=--max_old_space_size=4096 && yarn build:base
- name: Rename
run: Rename-Item -Path './gui/src-tauri/target/release/bundle/nsis/ztm_${{ vars.APP_VERSION }}_x64-setup.exe' -NewName 'ztm-app-v${{ vars.APP_VERSION }}-win_x86_64.exe'
- uses: actions/upload-artifact@v3
with:
name: ztm-app-v${{ vars.APP_VERSION }}-win_x86_64
path: ./gui/src-tauri/target/release/bundle/nsis/ztm-app-v${{ vars.APP_VERSION }}-win_x86_64.exe