Skip to content

Commit 3b27ab1

Browse files
authored
Create main.yml
1 parent 3606122 commit 3b27ab1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/main.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Wails build
2+
3+
on:
4+
push:
5+
tags:
6+
# Match any new tag
7+
- '*'
8+
9+
env:
10+
# Necessary for most environments as build failure can occur due to OOM issues
11+
NODE_OPTIONS: "--max-old-space-size=4096"
12+
13+
jobs:
14+
build:
15+
strategy:
16+
# Failure in one platform build won't impact the others
17+
fail-fast: false
18+
matrix:
19+
build:
20+
- name: 'App'
21+
platform: 'linux/amd64'
22+
os: 'ubuntu-latest'
23+
- name: 'App'
24+
platform: 'windows/amd64'
25+
os: 'windows-latest'
26+
- name: 'App'
27+
platform: 'darwin/universal'
28+
os: 'macos-latest'
29+
30+
runs-on: ${{ matrix.build.os }}
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v2
34+
with:
35+
submodules: recursive
36+
37+
- name: Build wails
38+
uses: dAppServer/wails-build-action@v2.2
39+
id: build
40+
with:
41+
build-name: ${{ matrix.build.name }}
42+
build-platform: ${{ matrix.build.platform }}
43+
package: false
44+
go-version: '1.20'

0 commit comments

Comments
 (0)