Skip to content

Commit e7e728d

Browse files
committed
Create main.yml
1 parent 3606122 commit e7e728d

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/main.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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: 'rm-exporter'
21+
platform: 'linux/amd64'
22+
os: 'ubuntu-latest'
23+
- name: 'rm-exporter'
24+
platform: 'windows/amd64'
25+
os: 'windows-latest'
26+
- name: 'rm-exporter'
27+
platform: 'darwin/universal'
28+
os: 'macos-latest'
29+
30+
runs-on: ${{ matrix.build.os }}
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4.2.2
34+
with:
35+
submodules: recursive
36+
37+
- name: Build wails
38+
uses: chopikus/wails-build-action@a9e607df4c313c9a7aaa7b29c61148e77c54ab92
39+
id: build
40+
with:
41+
build-name: ${{ matrix.build.name }}
42+
build-platform: ${{ matrix.build.platform }}
43+
package: true
44+
go-version: '1.22'
45+
node-version: '20.x'
46+
macos-build-name: 'rm-exporter'
47+
ubuntu24: "-tags webkit2_41"

0 commit comments

Comments
 (0)