-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: apostasie <[email protected]>
- Loading branch information
Showing
9 changed files
with
149 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Dev-tools install" | ||
|
||
description: "This action installs dev-tools, with caching." | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Environment setup | ||
shell: bash | ||
run: | | ||
echo "GO_VERSION=$(go version) >> "$GITHUB_ENV" | ||
echo "UNAME=$(uname)" >> "$GITHB_ENV" | ||
- name: Enable cache | ||
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2 | ||
id: cache | ||
with: | ||
path: ~/go/bin | ||
key: dev-tools-${{ env.UNAME }}-${{ env.GO_VERSION }}-${{ hashFiles('Makefile') }} | ||
- if: ${{ steps.cache.outputs.cache-hit != 'true' }} | ||
name: Install dev tools | ||
shell: bash | ||
continue-on-error: false | ||
run: make install-dev-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: "Go install" | ||
|
||
description: "This action installs go, with caching. | ||
By default, the latest stable release is used. | ||
You can also pass an explicit version: | ||
- `1.23` will install the latest stable patch release for that branch | ||
- `1.22.2` will install that specific version | ||
- `canary` will install the latest alpha/beta/RC" | ||
|
||
inputs: | ||
version: | ||
default: "" | ||
description: "" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Environment setup | ||
shell: bash | ||
run: | | ||
export GO_VERSION=${{ inputs.version }} | ||
echo "GO_VERSION=$(make install-go-resolve-version)" >> "$GITHUB_ENV" | ||
echo "PATH=/opt/go/bin:$HOME/go/bin:$PATH" >> "$GITHUB_ENV" | ||
echo "UNAME=$(uname)" >> "$GITHB_ENV" | ||
- name: Enable cache | ||
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2 | ||
id: cache | ||
with: | ||
path: /opt/go | ||
key: golang-${{ env.UNAME }}-${{ env.GO_VERSION }} | ||
- if: ${{ steps.cache.outputs.cache-hit != 'true' }} | ||
name: Install go | ||
shell: bash | ||
continue-on-error: false | ||
run: GO_INSTALL_DESTINATION=/opt make install-go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.