Skip to content

Commit 19f81a2

Browse files
committed
feat(build): add Wails build configuration for multiple platforms
- Introduced a GitHub Actions workflow for building the modpackgraph - Supports builds for both Linux and Windows platforms - Configured environment variables and build parameters for Wails
1 parent 0752685 commit 19f81a2

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Wails build
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
env:
9+
NODE_OPTIONS: "--max-old-space-size=4096"
10+
11+
jobs:
12+
build:
13+
strategy:
14+
# Failure in one platform build won't impact the others
15+
fail-fast: false
16+
matrix:
17+
build:
18+
- name: 'modpackgraph'
19+
platform: 'linux/amd64'
20+
os: 'ubuntu-latest'
21+
- name: 'modpackgraph'
22+
platform: 'windows/amd64'
23+
os: 'windows-latest'
24+
25+
runs-on: ${{ matrix.build.os }}
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
with:
30+
submodules: recursive
31+
32+
- name: Build wails
33+
uses: dAppServer/wails-build-action@v2.2
34+
id: build
35+
with:
36+
build-name: ${{ matrix.build.name }}
37+
build-platform: ${{ matrix.build.platform }}
38+
wails-version: 2.11.0
39+
go-version: '1.23'

0 commit comments

Comments
 (0)