From 1d9741b856d5985a1d69764aa5058f025b4d3772 Mon Sep 17 00:00:00 2001 From: Syrus Date: Wed, 19 Feb 2020 23:14:10 -0800 Subject: [PATCH] Fixed make capi script in windows --- azure-pipelines.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 112d2da8e..f94f5ec31 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -217,7 +217,21 @@ jobs: - bash: | make build-capi cp ./wasmer-c-api.tar.gz ./artifacts/$(./scripts/capi-name.sh) - displayName: Build c-api artifacts + displayName: Build c-api artifacts (Unix) + condition: | + and( + succeeded(), + not(eq(variables['Agent.OS'], 'Windows_NT')) + ) + - bash: | + make build-capi + cp ./wasmer-c-api.tar.gz ./artifacts/wasmer-c-api-windows.tar.gz + displayName: Build c-api artifacts (Windows) + condition: | + and( + succeeded(), + eq(variables['Agent.OS'], 'Windows_NT') + ) - publish: $(System.DefaultWorkingDirectory)/artifacts artifact: library-$(Agent.OS)