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
4 changes: 2 additions & 2 deletions .github/workflows/bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v6
uses: actions/setup-go@v7
with:
go-version-file: go.mod
check-latest: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 2

- name: Install Go
uses: actions/setup-go@v6
uses: actions/setup-go@v7
with:
go-version-file: go.mod
check-latest: true
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Install Go
uses: actions/setup-go@v6
uses: actions/setup-go@v7
with:
go-version-file: go.mod
check-latest: true
Expand All @@ -50,7 +50,7 @@ jobs:

- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@v7
with:
report_type: coverage
flags: ${{ runner.os }}-${{ runner.arch }}
Expand All @@ -59,7 +59,7 @@ jobs:

- name: Upload test results
if: always()
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@v7
with:
report_type: test_results
name: test-results
Expand All @@ -70,10 +70,10 @@ jobs:
runs-on: ubuntu-slim

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Install Go
uses: actions/setup-go@v6
uses: actions/setup-go@v7
with:
go-version-file: go.mod
check-latest: true
Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@
# -----------------------------------------------------------------------------
# go

GO_VERSION ?= $(shell grep -rh "^go " --include="go.mod" . 2>/dev/null | cut -d' ' -f2 | sort | uniq -c | sort -nr | head -1 | xargs | cut -d' ' -f2 | grep . || echo unknown)
GO_STABLE_VERSION = $(shell curl -sSL "https://go.dev/dl/?mode=json" | jq -r '[ .[] | select(.stable == true) ][0].version' | grep -oE '[0-9]+\.[0-9]+')
GO_BUILDTAGS = osusergo,netgo,static
GO_LDFLAGS = -s -w
ifeq ($(GO_OS),linux)
GO_LDFLAGS += "-extldflags=-static"
endif
GO_FLAGS ?= -tags='${GO_BUILDTAGS}' -ldflags='${GO_LDFLAGS}'

GOEXPERIMENT := runtimefreegc,sizespecializedmalloc,runtimesecret
ifeq ($(findstring ${GO_STABLE_VERSION},${GO_VERSION}),)
GOEXPERIMENT := ${GOEXPERIMENT},simd,runtimesecret,mapsplitgroup
endif
GOEXPERIMENT ?= simd,runtimesecret
export GOEXPERIMENT

TOOLS_BIN = ${CURDIR}/bin
Expand Down
Loading