28 lines
782 B
YAML
28 lines
782 B
YAML
name: Setup tools
|
|
description: Installs all tools necessary for building and testing the project.
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup mise
|
|
uses: jdx/mise-action@v2
|
|
|
|
- name: Go cache paths
|
|
id: go-cache-paths
|
|
shell: sh
|
|
run: |
|
|
echo "::set-output name=go-build::$(go env GOCACHE)"
|
|
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
|
|
|
|
- name: Go build cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ${{ steps.go-cache-paths.outputs.go-build }}
|
|
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
|
|
|
|
- name: Go mod cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ${{ steps.go-cache-paths.outputs.go-mod }}
|
|
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
|