mirror of
https://github.com/navidrome/navidrome.git
synced 2026-12-01 17:50:41 +00:00
Pipeline: Test, Lint, Build / Get version info (push) Canceled after 0s
Pipeline: Test, Lint, Build / Lint Go code (push) Canceled after 0s
Pipeline: Test, Lint, Build / Validate DB migrations (push) Canceled after 0s
Pipeline: Test, Lint, Build / Test Go code (push) Canceled after 0s
Pipeline: Test, Lint, Build / Test Go plugins (push) Canceled after 0s
Pipeline: Test, Lint, Build / Report coverage (push) Canceled after 0s
Pipeline: Test, Lint, Build / Test Go code (Windows) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Test JS code (push) Canceled after 0s
Pipeline: Test, Lint, Build / Lint i18n files (push) Canceled after 0s
Pipeline: Test, Lint, Build / Check Docker configuration (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (darwin/amd64) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (darwin/arm64) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (linux/386) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (linux/amd64) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (linux/arm/v5) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (linux/arm/v6) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (linux/arm/v7) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (linux/arm64) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (linux/riscv64) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (windows/386) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build (windows/amd64) (push) Canceled after 0s
Pipeline: Test, Lint, Build / Push to GHCR (push) Canceled after 0s
Pipeline: Test, Lint, Build / Push to Docker Hub () (push) Canceled after 0s
Pipeline: Test, Lint, Build / Cleanup digest artifacts (push) Canceled after 0s
Pipeline: Test, Lint, Build / Build Windows installers (push) Canceled after 0s
Pipeline: Test, Lint, Build / Package/Release (push) Canceled after 0s
Pipeline: Test, Lint, Build / Upload Linux PKG (push) Canceled after 0s
36 lines
1.4 KiB
Makefile
36 lines
1.4 KiB
Makefile
# Build test plugins used for integration testing
|
|
# Auto-discover all plugin folders (folders containing go.mod)
|
|
PLUGINS := $(patsubst %/go.mod,%,$(wildcard */go.mod))
|
|
|
|
# Prefer tinygo if available, it produces smaller wasm binaries and
|
|
# makes the tests faster.
|
|
TINYGO := $(shell command -v tinygo 2> /dev/null)
|
|
|
|
all: $(PLUGINS:%=%.ndp)
|
|
|
|
clean:
|
|
rm -f $(PLUGINS:%=%.ndp) $(PLUGINS:%=%.wasm)
|
|
rm -rf .wazero-cache $(PLUGINS:%=%.stage)
|
|
|
|
# PDK source files that trigger rebuild when changed (recursive)
|
|
PDK_SOURCES := $(shell find ../pdk/go -name '*.go' 2>/dev/null)
|
|
|
|
# Build the .ndp package (zip containing manifest.json + plugin.wasm)
|
|
# Stage under a per-target name: a shared plugin.wasm breaks concurrent builds.
|
|
%.ndp: %.wasm %/manifest.json
|
|
@rm -f $@
|
|
@rm -rf $*.stage && mkdir -p $*.stage
|
|
@cp $< $*.stage/plugin.wasm
|
|
zip -j $@ $*/manifest.json $*.stage/plugin.wasm
|
|
@rm -rf $*.stage
|
|
@mv $< $<.tmp && mv $<.tmp $< # Touch wasm to ensure it's older than ndp
|
|
|
|
# Build the wasm binary. -buildvcs=false keeps the bytes stable across commits, so
|
|
# the test suite's wazero compilation cache still hits after a rebuild.
|
|
.SECONDEXPANSION:
|
|
%.wasm: $$(shell find $$* -name '*.go') %/go.mod $(PDK_SOURCES)
|
|
ifdef TINYGO
|
|
cd $* && tinygo build -target wasip1 -buildmode=c-shared -o ../$@ .
|
|
else
|
|
cd $* && GOOS=wasip1 GOARCH=wasm go build -buildvcs=false -buildmode=c-shared -o ../$@ .
|
|
endif |