Merge pull request #8552 from guggero/optimize-build

GitHub: separate build caches
This commit is contained in:
Oliver Gugger authored and GitHub committed 2024-03-14 09:15:29 -06:00
commit 18371e120d
2 files changed
+10 -3

No files matched your search

+6 -3
View File
@@ -4,6 +4,9 @@ inputs:
go-version: go-version:
description: "The version of Golang to set up" description: "The version of Golang to set up"
required: true required: true
key-prefix:
description: "A prefix to use for the cache key, to separate cache entries from other workflows"
required: false
runs: runs:
using: "composite" using: "composite"
@@ -27,10 +30,10 @@ runs:
~/.cache/go-build ~/.cache/go-build
~/Library/Caches/go-build ~/Library/Caches/go-build
~\AppData\Local\go-build ~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ inputs.go-version }}-${{ github.job }}-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-${{ github.job }}-${{ hashFiles('**/go.sum') }}
restore-keys: | restore-keys: |
${{ runner.os }}-go-${{ inputs.go-version }}-${{ github.job }}- ${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-${{ github.job }}-
${{ runner.os }}-go-${{ inputs.go-version }}- ${{ runner.os }}-go-${{ inputs.go-version }}-${{ inputs.key-prefix }}-
- name: set GOPATH - name: set GOPATH
shell: bash shell: bash
+4
View File
@@ -154,6 +154,7 @@ jobs:
uses: ./.github/actions/setup-go uses: ./.github/actions/setup-go
with: with:
go-version: '${{ env.GO_VERSION }}' go-version: '${{ env.GO_VERSION }}'
key-prefix: cross-compile
- name: build release for all architectures - name: build release for all architectures
run: make release run: make release
@@ -211,6 +212,7 @@ jobs:
uses: ./.github/actions/setup-go uses: ./.github/actions/setup-go
with: with:
go-version: '${{ env.GO_VERSION }}' go-version: '${{ env.GO_VERSION }}'
key-prefix: unit-test
- name: install bitcoind - name: install bitcoind
run: ./scripts/install_bitcoind.sh run: ./scripts/install_bitcoind.sh
@@ -266,6 +268,7 @@ jobs:
uses: ./.github/actions/setup-go uses: ./.github/actions/setup-go
with: with:
go-version: '${{ env.GO_VERSION }}' go-version: '${{ env.GO_VERSION }}'
key-prefix: integration-test
- name: install bitcoind - name: install bitcoind
run: ./scripts/install_bitcoind.sh run: ./scripts/install_bitcoind.sh
@@ -302,6 +305,7 @@ jobs:
uses: ./.github/actions/setup-go uses: ./.github/actions/setup-go
with: with:
go-version: '${{ env.GO_VERSION }}' go-version: '${{ env.GO_VERSION }}'
key-prefix: integration-test
- name: run itest - name: run itest
run: make itest-parallel windows=1 run: make itest-parallel windows=1