From 7aa1414ecf21384c8a5402fc6921761801101e02 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 28 Mar 2021 17:51:36 +0200 Subject: [PATCH] Add msvc build --- .drone.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.drone.yml b/.drone.yml index d06d6a6..3e9d899 100644 --- a/.drone.yml +++ b/.drone.yml @@ -47,6 +47,27 @@ steps: commands: - apk add --no-cache curl - 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) -F maven2.asset1=@target/release/cggitem_sets -F maven2.asset1.extension=elf + environment: + MVN_PWD: + from_secret: maven_password + when: + branch: + - 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