gosick #1
@@ -11,7 +11,6 @@ jobs:
|
|||||||
validate:
|
validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RUNNER_TOOL_CACHE: /cache/tools
|
|
||||||
ARTEFACT_BUCKET_NAME: ${{ vars.ARTEFACT_BUCKET_NAME }}
|
ARTEFACT_BUCKET_NAME: ${{ vars.ARTEFACT_BUCKET_NAME }}
|
||||||
ARTEFACT_BUCKET_ENDPONT: ${{ vars.ARTEFACT_BUCKET_ENDPONT }}
|
ARTEFACT_BUCKET_ENDPONT: ${{ vars.ARTEFACT_BUCKET_ENDPONT }}
|
||||||
ARTEFACT_BUCKET_REGION: ${{ vars.ARTEFACT_BUCKET_REGION }}
|
ARTEFACT_BUCKET_REGION: ${{ vars.ARTEFACT_BUCKET_REGION }}
|
||||||
@@ -27,25 +26,7 @@ jobs:
|
|||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
cache: false
|
||||||
- name: Get go-hashfiles
|
|
||||||
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
|
||||||
id: hash-go
|
|
||||||
with:
|
|
||||||
patterns: |-
|
|
||||||
go.mod
|
|
||||||
go.sum
|
|
||||||
|
|
||||||
- name: Cache go
|
|
||||||
id: cache-go
|
|
||||||
uses: https://github.com/actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |-
|
|
||||||
/root/go/pkg/mod
|
|
||||||
/root/.cache/go-build
|
|
||||||
key: go_cache-${{ steps.hash-go.outputs.hash }}
|
|
||||||
restore-keys: |-
|
|
||||||
go_cache-${{ steps.hash-go.outputs.hash }}
|
|
||||||
|
|
||||||
- name: Ensure tooling is available
|
- name: Ensure tooling is available
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ jobs:
|
|||||||
validate:
|
validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RUNNER_TOOL_CACHE: /cache/tools
|
|
||||||
ARTEFACT_BUCKET_NAME: ${{ vars.ARTEFACT_BUCKET_NAME }}
|
ARTEFACT_BUCKET_NAME: ${{ vars.ARTEFACT_BUCKET_NAME }}
|
||||||
ARTEFACT_BUCKET_ENDPONT: ${{ vars.ARTEFACT_BUCKET_ENDPONT }}
|
ARTEFACT_BUCKET_ENDPONT: ${{ vars.ARTEFACT_BUCKET_ENDPONT }}
|
||||||
ARTEFACT_BUCKET_REGION: ${{ vars.ARTEFACT_BUCKET_REGION }}
|
ARTEFACT_BUCKET_REGION: ${{ vars.ARTEFACT_BUCKET_REGION }}
|
||||||
@@ -27,25 +26,7 @@ jobs:
|
|||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
cache: false
|
||||||
- name: Get go-hashfiles
|
|
||||||
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
|
||||||
id: hash-go
|
|
||||||
with:
|
|
||||||
patterns: |-
|
|
||||||
go.mod
|
|
||||||
go.sum
|
|
||||||
|
|
||||||
- name: Cache go
|
|
||||||
id: cache-go
|
|
||||||
uses: https://github.com/actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |-
|
|
||||||
/root/go/pkg/mod
|
|
||||||
/root/.cache/go-build
|
|
||||||
key: go_cache-${{ steps.hash-go.outputs.hash }}
|
|
||||||
restore-keys: |-
|
|
||||||
go_cache-${{ steps.hash-go.outputs.hash }}
|
|
||||||
|
|
||||||
- name: Ensure tooling is available
|
- name: Ensure tooling is available
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -31,25 +31,7 @@ jobs:
|
|||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
cache: false
|
||||||
- name: Get go-hashfiles
|
|
||||||
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
|
||||||
id: hash-go
|
|
||||||
with:
|
|
||||||
patterns: |-
|
|
||||||
go.mod
|
|
||||||
go.sum
|
|
||||||
|
|
||||||
- name: Cache go
|
|
||||||
id: cache-go
|
|
||||||
uses: https://github.com/actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |-
|
|
||||||
/root/go/pkg/mod
|
|
||||||
/root/.cache/go-build
|
|
||||||
key: go_cache-${{ steps.hash-go.outputs.hash }}
|
|
||||||
restore-keys: |-
|
|
||||||
go_cache-${{ steps.hash-go.outputs.hash }}
|
|
||||||
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user