-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 841 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: test
# The NUGET_API_KEY variable can be passed in as an argument or as an environment variable.
# If it is passed in as an argument, it will take precedence over the environment variable.
NUGET_API_KEY ?= $(shell env | grep NUGET_API_KEY)
prepare:
dotnet build
test:
dotnet build ./src/Extism.Pdk.MSBuild
dotnet publish -c Release ./samples/KitchenSink
dotnet test ./tests/Extism.Pdk.MsBuild.Tests
dotnet test ./tests/Extism.Pdk.WasmTests
clean:
dotnet clean
publish: clean
dotnet build -c Release ./src/Extism.Pdk.MSBuild/Extism.Pdk.MSBuild.csproj
dotnet build -c Release ./src/Extism.Pdk/Extism.Pdk.csproj
dotnet pack -c Release ./src/Extism.Pdk/Extism.Pdk.csproj
dotnet nuget push --source https://api.nuget.org/v3/index.json ./src/Extism.Pdk/bin/Release/*.nupkg --api-key $(NUGET_API_KEY)
format:
dotnet format