-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.47 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
name: Crossplatform Build
on:
# Allows workflow to be manually triggered.
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
type: choice
options: [info, warning, debug]
default: "warning"
nsis:
description: "Create installer"
type: boolean
required: true
package:
description: "Upload artifacts"
type: boolean
required: false
default: true
env:
# Necessary for most environments as build failure can occur due to OOM issues.
NODE_OPTIONS: "--max-old-space-size=4096"
jobs:
build:
strategy:
fail-fast: false
matrix:
build: [
{ name: "modm8.exe", platform: "windows/amd64", os: "windows-latest" },
{ name: "modm8", platform: "linux/amd64", os: "ubuntu-latest" },
# { name: "modm8", platform: "darwin/universal", os: "macos-latest" }
]
runs-on: ${{ matrix.build.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Wails Build
uses: The-Egg-Corp/[email protected]
id: build
with:
#name: "modm8"
go-version: '1.22.1'
node-version: 20
setup-bun: true
build-name: ${{ matrix.build.name }}
build-platform: ${{ matrix.build.platform }}
nsis: ${{ inputs.nsis }}
package: ${{ inputs.package }}