diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 112d2da8e14..f94f5ec312b 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)