azure: try to package skia-safe against all odds
@@ -43,22 +43,22 @@ stages:
cargo -V
displayName: 'Print versions'
- # TODO: find a better way to extract the GITHUB_RELEASE_TAG
- bash: |
set -e
cd skia-bindings && cargo package -vv --target-dir "$(Build.ArtifactStagingDirectory)"
- export GITHUB_RELEASE_TAG=$(cd "$(Build.ArtifactStagingDirectory)/package" && find skia-bindings-*.crate | cut -d'-' -f3 | cut -d'.' -f1-3)
- echo "##vso[task.setvariable variable=GITHUB_RELEASE_TAG;]${GITHUB_RELEASE_TAG}"
displayName: 'Package and Verify skia-bindings'
# TODO: why does this fail with
# error: 1 files in the working directory contain changes that were not yet committed into git:
# src/prelude.rs
# to proceed despite this, pass the `--allow-dirty` flag
- #- bash: |
- # set -e
- # cd skia-safe && cargo package -vv --no-verify --target-dir "$(Build.ArtifactStagingDirectory)"
- # displayName: 'Package skia-safe'
+ # TODO: find a better way to extract the GITHUB_RELEASE_TAG
+ - bash: |
+ set -e
+ cd skia-safe && cargo package -vv --no-verify --allow-dirty --target-dir "$(Build.ArtifactStagingDirectory)"
+ export GITHUB_RELEASE_TAG=$(cd "$(Build.ArtifactStagingDirectory)/package" && find skia-safe-*.crate | cut -d'-' -f3 | cut -d'.' -f1-3)
+ echo "##vso[task.setvariable variable=GITHUB_RELEASE_TAG;]${GITHUB_RELEASE_TAG}"
+ displayName: 'Package skia-safe'
- task: GithubRelease@0
displayName: 'Release to GitHub rust-skia/rust-skia'
