Skip to content

Commit

Permalink
try moving GH Actions Mac workflow back to Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jun 5, 2024
1 parent aa5312a commit 83cf87b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,21 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up MacPorts
uses: melusina-org/setup-macports@v1
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Install Dependencies
run: sudo port install mpv +libmpv && sudo port install dylibbundler

- name: Setup path
run: export C_INCLUDE_PATH=/usr/local/include:$C_INCLUDE_PATH && export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH
run: brew install --force mpv && brew install --force dylibbundler

- name: Build
run: CGO_CFLAGS="-I/usr/local/include" go build
run: CGO_CFLAGS="-I/usr/local/include -I/opt/homebrew/include" CGO_LDFLAGS="-L/usr/local/lib -L/opt/homebrew/lib" go build

- name: Install Fyne tool
run: go install fyne.io/fyne/v2/cmd/fyne@latest
Expand Down

0 comments on commit 83cf87b

Please sign in to comment.