Skip to content

Commit 29ad531

Browse files
authored
Merge pull request #1 from JTD420/main
build macos
2 parents fbe0c41 + db01b96 commit 29ad531

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build GambaSuite for macOS
2+
3+
# Trigger the workflow on push to the main branch or on pull requests
4+
on:
5+
push:
6+
branches:
7+
- dev
8+
pull_request:
9+
branches:
10+
- dev
11+
12+
jobs:
13+
build-macos:
14+
runs-on: macos-latest # Use the latest macOS runner provided by GitHub
15+
steps:
16+
# Checkout the repository code
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
submodules: recursive # Include submodules if your project uses them
21+
22+
# Set up Go (Wails requires a specific Go version)
23+
- name: Set up Go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version: '1.24.1' # Use the Go version compatible with Wails v2 (adjust if needed)
27+
28+
# Install Node.js (required for Wails frontend build)
29+
- name: Set up Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: '18' # Use a stable Node.js version (adjust if needed)
33+
34+
# Install Wails CLI
35+
- name: Install Wails
36+
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
37+
38+
# Install project dependencies
39+
- name: Install dependencies
40+
run: |
41+
# npm install # Install frontend dependencies
42+
go mod tidy # Ensure Go dependencies are up-to-date
43+
44+
# Build the Wails application for macOS
45+
- name: Build for macOS
46+
run: wails build -platform darwin/universal # Builds a universal binary for macOS (Intel + ARM)
47+
48+
# Optional: Upload the built artifact for download
49+
- name: Upload macOS artifact
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: macos-extension
53+
path: build/bin/*.app # Path to the built macOS app bundle

0 commit comments

Comments
 (0)