2024-03-22 12:57:03 +00:00
|
|
|
name: Install Go
|
|
|
|
description: Install Go for Filecoin Lotus
|
|
|
|
|
2024-05-22 12:47:29 +00:00
|
|
|
inputs:
|
|
|
|
working-directory:
|
|
|
|
description: Specifies the working directory where the command is run.
|
|
|
|
required: false
|
|
|
|
|
2024-03-22 12:57:03 +00:00
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-go@v5
|
|
|
|
with:
|
|
|
|
go-version: stable
|
|
|
|
cache: false
|
|
|
|
- id: go-mod
|
|
|
|
uses: ipdxco/unified-github-workflows/.github/actions/read-go-mod@main
|
2024-05-22 12:47:29 +00:00
|
|
|
with:
|
|
|
|
working-directory: ${{ inputs.working-directory || github.workspace }}
|
2024-03-22 12:57:03 +00:00
|
|
|
- uses: actions/setup-go@v5
|
|
|
|
with:
|
|
|
|
go-version: ${{ fromJSON(steps.go-mod.outputs.json).Go }}.x
|
|
|
|
cache: false
|