use release builds for running the example to avoid a rebuild and fix the env variable under windows
@@ -47,7 +47,11 @@ jobs:
displayName: Build all targets
- script: cargo test --release -p skia-safe -vv
displayName: Test skia-safe
- - script: cargo run --example skia-org ${BUILD_ARTIFACTSTAGINGDIRECTORY}/skia-org
+ - ${{ if ne(parameters.name, 'Windows') }}:
+ - script: cargo run --release --example skia-org ${BUILD_ARTIFACTSTAGINGDIRECTORY}/skia-org
+ displayName: Run skia-org Example
+ - ${{ if eq(parameters.name, 'Windows') }}:
+ - script: cargo run --release --example skia-org %BUILD_ARTIFACTSTAGINGDIRECTORY%/skia-org
displayName: Run skia-org Example
- task: PublishBuildArtifacts@1
inputs:
