Skip to content

Commit 2e324ca

Browse files
authored
Merge pull request #42 from Joshua-Igoni/feature/pipeline-cache-dependencies
added caching for more efficient build time
2 parents f0ea8d1 + 9677213 commit 2e324ca

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ jobs:
1313
with:
1414
go-version: 1.21
1515

16+
- name: Cache Go modules
17+
uses: actions/cache@v3
18+
with:
19+
path: |
20+
~/.cache/go-build
21+
~/go/pkg/mod
22+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
23+
1624
- name: Display Go version
1725
run: go version
1826

@@ -38,6 +46,12 @@ jobs:
3846
with:
3947
name: dist
4048

49+
- name: Cache pip dependencies
50+
uses: actions/cache@v3
51+
with:
52+
path: ~/.cache/pip
53+
key: ${{ runner.os }}-pip-${{ hashFiles('e2e/requirements.txt') }}
54+
4155
- name: Install tlm
4256
run: |
4357
mv $(cat VERSION)/tlm_$(cat VERSION)_linux_amd64 /usr/local/bin/tlm

0 commit comments

Comments
 (0)