Merge pull request #481 from tphakala/install-sh-fixes #913
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
name: golangci-lint | |
concurrency: | |
group: golangci-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_call: | |
permissions: | |
contents: read | |
#pull-requests: read | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- run: go version | |
- name: Install dependencies | |
run: make check-tensorflow | |
- name: Set environment variables for CGO | |
run: | | |
echo "CGO_ENABLED=1" >> $GITHUB_ENV | |
echo "CGO_CFLAGS=-I $HOME/src/tensorflow" >> $GITHUB_ENV | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
# Require: The version of golangci-lint to use. | |
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. | |
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. | |
version: v1.63 |