👷 Upgrade actions' version
This commit is contained in:
1 parent
c1b65f4873
commit
a4e8911c9b
4 files changed
+24
-14
No files matched your search
@@ -13,7 +13,7 @@ inputs:
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
sparse-checkout: |
|
||||
Dockerfile
|
||||
@@ -27,7 +27,7 @@ runs:
|
||||
else
|
||||
echo "is_latest=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- uses: actions/download-artifact@v5
|
||||
- uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: binary
|
||||
path: ${{ github.workspace }}/dist
|
||||
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@v6
|
||||
|
||||
# Add any setup steps before running the `github/codeql-action/init` action.
|
||||
# This includes steps like installing compilers or runtimes (`actions/setup-node`
|
||||
|
||||
@@ -4,6 +4,10 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- '*.*.*-rc*'
|
||||
- '*.*.*-beta*'
|
||||
- '*.*.*-alpha*'
|
||||
- '*.*.*-dev*'
|
||||
|
||||
permissions: read-all
|
||||
|
||||
@@ -13,7 +17,7 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@v6
|
||||
@@ -27,7 +31,7 @@ jobs:
|
||||
distribution: goreleaser
|
||||
args: release --clean
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: binary
|
||||
path: dist/yutu_*/yutu-*
|
||||
@@ -51,7 +55,7 @@ jobs:
|
||||
- windows_arm64_v8.0/yutu-windows-arm64.exe
|
||||
steps:
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v5
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: binary
|
||||
- name: Attest
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
go-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version-file: ./go.mod
|
||||
@@ -53,20 +53,26 @@ jobs:
|
||||
bazel-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: bazel-contrib/setup-bazel@0.15.0
|
||||
with:
|
||||
bazelisk-cache: true
|
||||
disk-cache: ${{ github.workflow }}
|
||||
repository-cache: true
|
||||
- uses: actions/checkout@v6
|
||||
- uses: bazel-contrib/setup-bazel@0.16.0
|
||||
# with:
|
||||
# bazelisk-cache: true
|
||||
# disk-cache: ${{ github.workflow }}
|
||||
# repository-cache: true
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version-file: ./go.mod
|
||||
- name: Update dependencies
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
bazel run @rules_go//go -- mod tidy -v
|
||||
- name: bazel mod tidy
|
||||
shell: bash
|
||||
run: |
|
||||
bazel mod tidy
|
||||
- name: bazel generate
|
||||
shell: bash
|
||||
run: |
|
||||
bazel run @rules_go//go -- install github.com/tc-hib/go-winres@latest
|
||||
bazel run @rules_go//go -- generate ./...
|
||||
- name: Bazel test
|
||||
|
||||
Reference in new issue
Block a user