Skip to content

Commit 7e9a9e7

Browse files
committed
workflows: cache and don't rebuild everything
1 parent 597b4c8 commit 7e9a9e7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@ jobs:
1212
uses: actions/setup-go@v1
1313
with:
1414
go-version: 1.14
15+
- name: Cache build
16+
uses: actions/cache@v1
17+
with:
18+
path: ~/.cache/go-build
19+
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}
20+
restore-keys: |
21+
${{runner.os}}-go-
1522
- name: Install deps
1623
run: |
1724
sudo apt-get update
1825
sudo apt-get install -yq libgtk-3-dev libappindicator3-dev
1926
- name: Test
2027
run: |
21-
./build.sh -a -v ./...
28+
./build.sh -v ./...
2229

0 commit comments

Comments
 (0)