File tree Expand file tree Collapse file tree 7 files changed +26
-105
lines changed Expand file tree Collapse file tree 7 files changed +26
-105
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ delete_merged_branches = true
33required_approvals = 1
44status = [
55 " continuous-integration/travis-ci/push" ,
6- " continuous-integration/appveyor/branch"
76]
87timeout_sec = 14400
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ matrix:
4848 - env : TARGET=x86_64-apple-darwin
4949 os : osx
5050
51+ # Windows
52+ - env : TARGET=x86_64-pc-windows-msvc
53+ os : windows
54+
5155install :
5256 - bash ci/install.sh
5357
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- set -ex
1+ set -euxo pipefail
22
33main () {
4- local src=$( pwd) \
5- stage=
4+ if [ $TARGET = x86_64-pc-windows-msvc ]; then
5+ cargo=cargo
6+ else
7+ cargo=cross
8+ fi
69
7- case $TRAVIS_OS_NAME in
8- linux)
9- stage=$( mktemp -d)
10- ;;
11- osx)
12- stage=$( mktemp -d -t tmp)
13- ;;
14- esac
10+ $cargo rustc --bin svd2rust --target $TARGET --release -- -C lto
1511
16- cross rustc --bin svd2rust --target $TARGET --release -- -C lto
12+ rm -rf stage
13+ mkdir stage
14+ cp target/$TARGET /release/svd2rust stage
1715
18- cp target/$TARGET /release/svd2rust $stage /
16+ pushd stage
17+ tar czf ../$CRATE_NAME -$TRAVIS_TAG -$TARGET .tar.gz *
18+ popd
1919
20- cd $stage
21- tar czf $src /$CRATE_NAME -$TRAVIS_TAG -$TARGET .tar.gz *
22- cd $src
23-
24- rm -rf $stage
20+ rm -rf stage
2521}
2622
2723main
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ set -euxo pipefail
22
33main () {
44 local sort=
5- if [ $TRAVIS_OS_NAME = linux ]; then
5+ if [ $TRAVIS_OS_NAME = windows ]; then
6+ return
7+ elif [ $TRAVIS_OS_NAME = linux ]; then
68 sort=sort
79 else
810 sort=gsort
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ test_svd() {
2222}
2323
2424main () {
25+ if [ $TRAVIS_OS_NAME = windows ]; then
26+ cargo check --target $TARGET
27+ return
28+ fi
29+
2530 cross check --target $TARGET
2631
2732 if [ -z ${VENDOR-} ]; then
You can’t perform that action at this time.
0 commit comments