Skip to content

Commit

Permalink
GitHub Actions Cache build-tools and change all upload/download actio…
Browse files Browse the repository at this point in the history
…ns to @v1 (#2308)

* adding remaining CI workflows

removing sleep from common.sh

removing windows-msi

updating expectd ram usage

removing caching

moving loadtestpre into setup environment

using underscore for setup-environment instead

adding collector binaries and fixing setup-pre job

* GitHub Actions: only run make tools if cache hit
  • Loading branch information
Azfaar Qureshi authored Dec 19, 2020
1 parent 2069851 commit d47baee
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ jobs:
with:
path: /home/runner/go/pkg/mod
key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('./go.mod') }}
- name: Restore tools binaries
id: tool-cache
uses: actions/cache@v2
env:
cache-name: cache-tool-binaries
with:
path: /home/runner/go/bin
key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod') }}
- name: Install tools
if: steps.tool-cache.outputs.cache-hit != 'true'
run: make install-tools
- name: split loadtest jobs
id: splitloadtest
Expand Down Expand Up @@ -108,7 +117,7 @@ jobs:
path: /home/runner/go/pkg/mod
key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('./go.mod') }}
- name: Download tool binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v1
with:
name: tool-binaries
path: /home/runner/go/bin
Expand Down Expand Up @@ -142,7 +151,7 @@ jobs:
path: /home/runner/go/pkg/mod
key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('./go.mod') }}
- name: Download tool binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v1
with:
name: tool-binaries
path: /home/runner/go/bin
Expand Down Expand Up @@ -171,7 +180,7 @@ jobs:
with:
go-version: 1.15
- name: Download tool binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v1
with:
name: tool-binaries
path: /home/runner/go/bin
Expand Down Expand Up @@ -228,7 +237,7 @@ jobs:
with:
go-version: 1.15
- name: Download tool binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v1
with:
name: tool-binaries
path: /home/runner/go/bin
Expand Down Expand Up @@ -279,12 +288,12 @@ jobs:
- name: Install fpm and dependencies
run: gem install --no-document fpm -v 1.11.0
- name: Download tool binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v1
with:
name: tool-binaries
path: /home/runner/go/bin
- name: Download collector binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v1
with:
name: collector-binaries
path: ./bin
Expand Down

0 comments on commit d47baee

Please sign in to comment.