diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9d5781e5..ceebae62 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,6 +13,8 @@ on: jobs: build-matrix: + env: + RQ_VERSION: v0.0.9 name: Matrix strategy: matrix: @@ -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/golangci-lint-action@v6.0.1 if: matrix.os.name == 'linux'