Skip to content

Commit

Permalink
try y flag
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Jun 5, 2024
1 parent 7ba674d commit f28e3f4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,19 @@ jobs:
with:
go-version: ${{ matrix.go }}
cache: true
- name: Install OpenSSL on Windows
if: runner.os == 'Windows'
# this is required to be able to run the TPM simulator on Windows
# https://github.com/google/go-tpm-tools#openssl-errors-when-building-simulator
run: choco install openssl -y
shell: bash
- name: Lint
uses: golangci/golangci-lint-action@v3
- name: Test
run: go test $(go list ./... | grep -v cross_language_tests) -race
shell: bash
- name: set macos cgo flags
if: runner.os == 'macos'
run: |
echo CGO_CFLAGS="-I$(brew --prefix openssl)/include" >> $GITHUB_ENV
echo CGO_LDFLAGS="-L$(brew --prefix openssl)/lib" >> $GITHUB_ENV
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 f28e3f4

Please sign in to comment.