Skip to content

Commit

Permalink
Cache Go files in CI (#31)
Browse files Browse the repository at this point in the history
Closes #30
  • Loading branch information
agriyakhetarpal authored Jan 12, 2024
2 parents fd3cf92 + 0ba0ceb commit 78aeca5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
allow-prereleases: true

- name: Set up Go toolchain
id: setup-go
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
Expand All @@ -61,6 +62,13 @@ jobs:
if: matrix.runs-on == 'windows-latest'
run: choco install mingw

- name: Restore or save Hugo builder cache
uses: actions/cache@v3
with:
path: ./hugo_cache/
key: ${{ runner.os }}-hugo-${{ hashFiles('**/setup.py') }}-${{ steps.setup-go.outputs.go-version }}
# restore-keys: ${{ runner.os }}-hugo-${{ hashFiles('**/setup.py') }}

- name: Install Python dependencies
run: python -m pip install build virtualenv nox

Expand Down

0 comments on commit 78aeca5

Please sign in to comment.