Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions .flox/env/manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .flox/env/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ go.pkg-group = "go"
go.version = "1.27.3"
goreleaser.pkg-path = "goreleaser"
goreleaser.version = "2.20.0"
golangci-lint.pkg-path = "golangci-lint"


[build]
Expand Down
19 changes: 6 additions & 13 deletions .github/workflows/go-releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,15 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v7
- name: Install GoReleaser (System-wide)
uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7.3.0
with:
version: v2.20.0
install-only: true
- name: Install Flox
uses: flox/install-flox-action@v2
- name: Activate Flox environment
uses: devbytes-cloud/flox-activate-action@v1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@a4f02ab5355a589de60d917a659ce617ed19b3de # v7.3.0
with:
distribution: goreleaser
version: 'latest'
args: release --clean
run: goreleaser release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_AUTH_TOKEN: ${{ secrets.GORELEASER_AUTH_TOKEN}}
GORELEASER_AUTH_TOKEN: ${{ secrets.GORELEASER_AUTH_TOKEN }}

flox-publish:
needs: goreleaser
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
- uses: flox/install-flox-action@v2
- uses: devbytes-cloud/flox-activate-action@v1

- name: make placeholder assets
run: make asset-placeholders

- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
install-mode: none
23 changes: 19 additions & 4 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,26 @@ jobs:
- name: Checkout source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Go
uses: actions/setup-go@v7
- name: Install Flox
uses: flox/install-flox-action@v2

- name: Activate Flox environment
uses: devbytes-cloud/flox-activate-action@v1

- name: Locate Go caches
id: go-cache
run: |
echo "modcache=$(go env GOMODCACHE)" >> "$GITHUB_OUTPUT"
echo "buildcache=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"

- name: Cache Go modules and build cache
uses: actions/cache@v6
with:
# Reads version from go.mod; override with a specific version if you prefer
go-version-file: go.mod
path: |
${{ steps.go-cache.outputs.modcache }}
${{ steps.go-cache.outputs.buildcache }}
key: go-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('go.sum', '.flox/env/manifest.lock') }}
restore-keys: go-${{ runner.os }}-${{ runner.arch }}-

- name: make placeholder assets
run: make asset-placeholders
Expand Down
Loading