chore(dev): ensure project compiles on darwin and windows

This commit is contained in:
Quentin McGaw
2026-02-09 15:40:45 +00:00
parent 5f0c499808
commit b0a75673bd
6 changed files with 16 additions and 0 deletions
+3
View File
@@ -63,6 +63,9 @@ jobs:
-v "$(pwd)/coverage.txt:/tmp/gobuild/coverage.txt" \
test-container
- name: Verify dev cross platform compatibility
run: docker build --target xcompile .
- name: Build final image
run: docker build -t final-image .
+4
View File
@@ -46,6 +46,10 @@ RUN git init && \
git diff --exit-code && \
rm -rf .git/
FROM --platform=${BUILDPLATFORM} base AS xcompile
RUN GOOS=darwin go build -o /dev/null ./...
RUN GOOS=windows go build -o /dev/null ./...
FROM --platform=${BUILDPLATFORM} base AS build
ARG TARGETPLATFORM
ARG VERSION=unknown
@@ -1,3 +1,5 @@
//go:build !windows
package mod
import (
+7
View File
@@ -0,0 +1,7 @@
//go:build !linux
package mod
func Probe(moduleName string) error {
panic("not implemented")
}