File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments