Skip to content

Commit 4ec96a6

Browse files
committed
test macos compilation
1 parent 8f2ef75 commit 4ec96a6

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

.github/workflows/main.yml

+22-19
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,25 @@ jobs:
3838
with:
3939
name: linux-build
4040
path: fyne-cross/bin/linux-amd64
41-
# build-mac:
42-
# runs-on: macos-latest
43-
# steps:
44-
# - uses: actions/checkout@v2
45-
# - name: Set up Go
46-
# uses: actions/setup-go@v2
47-
# with:
48-
# go-version: 1.16
49-
# - name: Set up Docker
50-
# uses: docker/setup-buildx-action@v2
51-
# - name: Install fyne-cross
52-
# run: go install github.com/fyne-io/fyne-cross@latest
53-
# - name: Cross-compile for macOS
54-
# run: fyne-cross darwin
55-
# - name: Upload macOS artifact
56-
# uses: actions/upload-artifact@v3
57-
# with:
58-
# name: macos-build
59-
# path: fyne-cross/bin/darwin-amd64
41+
build-mac:
42+
runs-on: macos-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: Set up Go
46+
uses: actions/setup-go@v2
47+
with:
48+
go-version: 1.16
49+
- name: Install fyne-cross
50+
run: go install github.com/fyne-io/fyne-cross@latest
51+
- name: Build Fyne application for macOS
52+
env:
53+
CGO_ENABLED: 1
54+
GOOS: darwin
55+
GOARCH: amd64 # Change if targeting a different architecture
56+
CC: o32-clang # Specify your C compiler here
57+
run: fyne-cross darwin
58+
- name: Upload macOS artifact
59+
uses: actions/upload-artifact@v3
60+
with:
61+
name: macos-build
62+
path: fyne-cross/bin/darwin-amd64

0 commit comments

Comments
 (0)