Skip to content

Commit

Permalink
ci: Enable caching of Go modules (#1062)
Browse files Browse the repository at this point in the history
Run the checkout action first so that `go.sum` is available for
`checkout-go` to cache things.
  • Loading branch information
rohansingh authored Apr 26, 2024
1 parent 29d4064 commit 974028c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -55,9 +58,6 @@ jobs:
mingw-w64-x86_64-go
mingw-w64-x86_64-toolchain
- name: Checkout code
uses: actions/checkout@v4

- name: Install Linux dependencies
if: matrix.os == 'ubuntu-22.04'
run: sudo ./scripts/setup-linux.sh
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -53,9 +56,6 @@ jobs:
mingw-w64-x86_64-go
mingw-w64-x86_64-toolchain
- name: Checkout code
uses: actions/checkout@v4

- name: Install Linux dependencies
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get install -y libwebp-dev
Expand Down

0 comments on commit 974028c

Please sign in to comment.