Skip to content

Commit

Permalink
Enable cache in build
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Jan 23, 2025
1 parent 13b59eb commit b93d485
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
cache: true
- run: make generate-ui
- run: GO_TAGS="builtinassets promtail_journal_enabled" GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} GOARM= make alloy

Expand All @@ -46,7 +46,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
cache: true
- run: make generate-ui
- run: GO_TAGS="builtinassets promtail_journal_enabled" GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} GOARM= GOEXPERIMENT=boringcrypto make alloy

Expand All @@ -60,7 +60,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
cache: true
- run: make generate-ui
- run: GO_TAGS="builtinassets" GOOS=darwin GOARCH=amd64 GOARM= make alloy

Expand All @@ -74,7 +74,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
cache: true
- run: make generate-ui
- run: GO_TAGS="builtinassets" GOOS=darwin GOARCH=arm64 GOARM= make alloy

Expand All @@ -88,7 +88,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
cache: true
- run: make generate-ui
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
- run: echo "GO_TAGS=builtinassets" | Out-File -FilePath $env:GITHUB_ENV -Append
Expand All @@ -112,6 +112,6 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
cache: true
- run: make generate-ui
- run: GO_TAGS="builtinassets" GOOS=freebsd GOARCH=amd64 GOARM= make alloy

0 comments on commit b93d485

Please sign in to comment.