Skip to content

Commit

Permalink
set macos cgo to github env
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Jun 5, 2024
1 parent 0c17648 commit 71fb6b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:
- name: set macos cgo flags
if: runner.os == 'macos'
run: |

Check failure on line 72 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2086:info:1:57: Double quote to prevent globbing and word splitting

Check failure on line 72 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / actionlint

shellcheck reported issue in this script: SC2086:info:2:54: Double quote to prevent globbing and word splitting
export CGO_CFLAGS="-I$(brew --prefix openssl)/include"
export CGO_LDFLAGS="-L$(brew --prefix openssl)/lib"
echo CGO_CFLAGS="-I$(brew --prefix openssl)/include" >> $GITHUB_ENV
echo CGO_LDFLAGS="-L$(brew --prefix openssl)/lib" >> $GITHUB_ENV
- name: Test
run: go test -tags skiplint $(go list ./... | grep -v cross_language_tests) -race -cover
shell: bash
Expand Down

0 comments on commit 71fb6b0

Please sign in to comment.