Skip to content
Merged
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
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ jobs:
run: make ui

- name: Run tests
run: go test ./...
# sqlite_fts5: mattn/go-sqlite3 only compiles FTS5 in when this
# tag is set. internal/serve/store's schema uses
# `CREATE VIRTUAL TABLE … USING fts5(…)` — without the tag,
# OpenCostStore() fails at runtime with "no such module: fts5"
# and ~25 store/serve tests blow up.
run: go test -tags sqlite_fts5 ./...

- name: Determine bump level
id: level
Expand Down Expand Up @@ -201,8 +206,10 @@ jobs:
mkdir -p "dist/${stage}"

echo "→ building ${target}"
# -tags sqlite_fts5: see "Run tests" step. Released binaries
# without this tag panic at boot in OpenCostStore.
CGO_ENABLED=0 GOOS="$goos" GOARCH="$goarch" \
go build -trimpath -ldflags "$LDFLAGS" \
go build -trimpath -tags sqlite_fts5 -ldflags "$LDFLAGS" \
-o "dist/${stage}/ctm" \
./

Expand Down
Loading