From dcbe55325852ac2e6dde7e29ee97b8253e21860c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pawe=C5=82=20Biegluk?= <134352883+MichaelBiegluk@users.noreply.github.com> Date: Sat, 14 Sep 2024 17:51:46 +0200 Subject: [PATCH] Create SetupGoEnvironent.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Paweł Biegluk <134352883+MichaelBiegluk@users.noreply.github.com> --- .github/workflows/SetupGoEnvironent.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/SetupGoEnvironent.yml diff --git a/.github/workflows/SetupGoEnvironent.yml b/.github/workflows/SetupGoEnvironent.yml new file mode 100644 index 00000000000..6bf92585cff --- /dev/null +++ b/.github/workflows/SetupGoEnvironent.yml @@ -0,0 +1,18 @@ + - name: Setup Go environment + uses: actions/setup-go@v5.0.2 + with: + # The Go version to download (if necessary) and use. Supports semver spec and ranges. Be sure to enclose this option in single quotation marks. + go-version: # optional + # Path to the go.mod or go.work file. + go-version-file: # optional + # Set this option to true if you want the action to always check for the latest available version that satisfies the version spec + check-latest: # optional + # Used to pull Go distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting. + token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }} + # Used to specify whether caching is needed. Set to true, if you'd like to enable caching. + cache: # optional, default is true + # Used to specify the path to a dependency file - go.sum + cache-dependency-path: # optional + # Target architecture for Go to use. Examples: x86, x64. Will use system architecture by default. + architecture: # optional +