Skip to content

Commit

Permalink
ci(github): try caching deps
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Oct 12, 2023
1 parent 9ea4a81 commit ae4448d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
with:
fetch-depth: 0

- name: Install/Cache dependencies
if: ${{ steps.release_please.outputs.release_created }}
id: cache_pkg_deps
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: desktop-file-utils gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev

- name: Setup Go
if: ${{ steps.release_please.outputs.release_created }}
id: setup_go
Expand All @@ -41,11 +48,6 @@ jobs:
go install golang.org/x/text/cmd/gotext@latest
go install github.com/matryer/moq@latest
- name: Install library dependencies
if: ${{ steps.release_please.outputs.release_created }}
id: install_linux_deps
run: sudo apt install -y desktop-file-utils gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev

- name: Update VERSION
if: ${{ steps.release_please.outputs.release_created }}
id: update_version
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ jobs:
id: checkout
uses: actions/checkout@v3

- name: Install/Cache dependencies
id: cache_pkg_deps
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: desktop-file-utils gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev

- name: Set up Go
id: setup_go
uses: actions/setup-go@v4
Expand All @@ -24,9 +30,6 @@ jobs:
go install golang.org/x/text/cmd/gotext@latest
go install github.com/matryer/moq@latest
- name: Install dependencies
id: install_linux_deps
run: export DEBIAN_FRONTEND=noninteractive && sudo apt -y update && apt install -y desktop-file-utils gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev
- name: Update VERSION
id: update_version
Expand Down

0 comments on commit ae4448d

Please sign in to comment.