Add msvc build
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
nyyu 2021-03-28 17:51:36 +02:00
parent 7408367750
commit 7aa1414ecf

View file

@ -53,3 +53,24 @@ steps:
when: when:
branch: branch:
- master - master
---
kind: pipeline
type: exec
name: windows-msvc
steps:
- name: build
commands:
- rustup update
- cargo test
- cargo clippy
- cargo build --release
- name: deploy
commands:
- curl -u drone:$MVN_PWD -X POST 'https://nexus.nyyu.dev/service/rest/v1/components?repository=maven-releases' -F maven2.groupId=dev.nyyu -F maven2.artifactId=cggitem_sets -F maven2.version=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml)-$(date +%Y%m%d%H%M%S)-msvc -F maven2.asset1=@target/release/cggitem_sets -F maven2.asset1.extension=exec
environment:
MVN_PWD:
from_secret: maven_password
when:
branch:
- master