Skip to content

Commit

Permalink
.github/workflows/go.yml - Fix matrix.cgo conditional (#219)
Browse files Browse the repository at this point in the history
The format of the condition was wrong an it always evaluated to true for
both cases.
  • Loading branch information
andrewkroh authored Apr 10, 2024
1 parent 8180f8e commit dee1b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ jobs:
run: echo "GO_VERSION=${{ steps.setup_go.outputs.go-version }}" >> $GITHUB_ENV

- name: Set CGO_ENABLED=1
if: ${{ matrix.cgo }} == "cgo"
if: matrix.cgo == 'cgo'
run: echo "CGO_ENABLED=1" >> $GITHUB_ENV

- name: Set CGO_ENABLED=0
if: ${{ matrix.cgo }} == "nocgo"
if: matrix.cgo == 'nocgo'
run: echo "CGO_ENABLED=0" >> $GITHUB_ENV

- name: golangci-lint
Expand Down

0 comments on commit dee1b46

Please sign in to comment.