From 6883e035e5653597a7337aed8e6c31f0f8826e95 Mon Sep 17 00:00:00 2001 From: CFC4N Date: Sat, 24 Feb 2024 18:34:49 +0800 Subject: [PATCH] workflows: fix golangci/golangci-lint-action run failed. Signed-off-by: CFC4N --- .github/workflows/go-c-cpp.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/go-c-cpp.yml b/.github/workflows/go-c-cpp.yml index e032549f4..de6c05414 100644 --- a/.github/workflows/go-c-cpp.yml +++ b/.github/workflows/go-c-cpp.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-20.04 name: build on ubuntu-20.04 x86_64 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: '1.21.0' - name: Install Compilers @@ -34,7 +34,7 @@ jobs: make env make nocore -j4 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version # version: v3.2.0 @@ -50,13 +50,13 @@ jobs: # Optional: if set to true then the all caching functionality will be complete disabled, # takes precedence over all other caching options. - # skip-cache: true + skip-cache: true # Optional: if set to true then the action don't cache or restore ~/go/pkg. - # skip-pkg-cache: true + skip-pkg-cache: true # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. - # skip-build-cache: true + skip-build-cache: true - name: Build NOCORE run: | make clean @@ -69,7 +69,7 @@ jobs: runs-on: ubuntu-22.04 name: build on ubuntu-22.04 x86_64 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: '1.21.0' - name: Install Compilers @@ -92,7 +92,7 @@ jobs: make env make -j8 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version # version: v3.2.0 @@ -108,13 +108,13 @@ jobs: # Optional: if set to true then the all caching functionality will be complete disabled, # takes precedence over all other caching options. - # skip-cache: true + skip-cache: true # Optional: if set to true then the action don't cache or restore ~/go/pkg. - # skip-pkg-cache: true + skip-pkg-cache: true # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. - # skip-build-cache: true + skip-build-cache: true - name: Build NOCORE run: | make clean