Skip to content

Commit

Permalink
Cache rq binary (#820)
Browse files Browse the repository at this point in the history
* Cache rq binary

Signed-off-by: Charlie Egan <[email protected]>

* Cache v4

Signed-off-by: Charlie Egan <[email protected]>

* Fix typo

Signed-off-by: Charlie Egan <[email protected]>

---------

Signed-off-by: Charlie Egan <[email protected]>
  • Loading branch information
charlieegan3 committed Jun 10, 2024
1 parent 96246a3 commit b6588dc
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:

jobs:
build-matrix:
env:
RQ_VERSION: v0.0.9
name: Matrix
strategy:
matrix:
Expand All @@ -37,7 +39,20 @@ jobs:
version: edge
static: ${{ matrix.os.static }}
- run: npm install -g markdownlint-cli
- run: go install git.sr.ht/~charles/rq/cmd/rq@latest
- name: Restore rq cache
id: cache-rq
uses: actions/cache@v4
with:
path: ~/go/bin/rq
key: ${{ runner.os }}-${{ runner.arch }}-go-rq-${{ env.RQ_VERSION }}
- run: go install git.sr.ht/~charles/rq/cmd/rq@${{ env.RQ_VERSION }}
if: steps.cache-rq.outputs.cache-hit != 'true'
- name: Cache rq binary
if: steps.cache-rq.outputs.cache-hit != 'true'
uses: actions/cache@v4
with:
path: ~/go/bin/rq
key: ${{ runner.os }}-${{ runner.arch }}-go-rq-${{ env.RQ_VERSION }}
- run: build/do.rq pull_request
- uses: golangci/[email protected]
if: matrix.os.name == 'linux'
Expand Down

0 comments on commit b6588dc

Please sign in to comment.