forked from wildeyedskies/stmp
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set macos include/lib paths to all possible values
- Loading branch information
1 parent
bf5ea3c
commit a467711
Showing
4 changed files
with
79 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build macOS | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "*.md" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
go: | ||
- "1.21" | ||
- "1.22" | ||
|
||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Library dependencies | ||
run: brew install mpv | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Go ${{ matrix.go }} | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Get Go deps | ||
run: go get . | ||
|
||
- name: Setup path | ||
run: export C_INCLUDE_PATH=/usr/local/include:/opt/homebrew/include:$C_INCLUDE_PATH && export LIBRARY_PATH=/usr/local/lib:/opt/homebrew/lib:$LIBRARY_PATH | ||
|
||
- name: Compile | ||
run: CGO_CFLAGS="-I/usr/local/include -I/opt/homebrew/include" CGO_LDFLAGS="-L/usr/local/lib -L/opt/homebrew/lib" go build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build macOS Intel | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "*.md" | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
go: | ||
- "1.21" | ||
- "1.22" | ||
|
||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Library dependencies | ||
run: brew install mpv | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Go ${{ matrix.go }} | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Get Go deps | ||
run: go get . | ||
|
||
- name: Setup path | ||
run: export C_INCLUDE_PATH=/usr/local/include:/opt/homebrew/include:$C_INCLUDE_PATH && export LIBRARY_PATH=/usr/local/lib:/opt/homebrew/lib:$LIBRARY_PATH | ||
|
||
- name: Compile | ||
run: CGO_CFLAGS="-I/usr/local/include -I/opt/homebrew/include" CGO_LDFLAGS="-L/usr/local/lib -L/opt/homebrew/lib" go build |
This file was deleted.
Oops, something went wrong.