File tree Expand file tree Collapse file tree 7 files changed +28
-105
lines changed Expand file tree Collapse file tree 7 files changed +28
-105
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ delete_merged_branches = true
3
3
required_approvals = 1
4
4
status = [
5
5
" continuous-integration/travis-ci/push" ,
6
- " continuous-integration/appveyor/branch"
7
6
]
8
7
timeout_sec = 14400
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ matrix:
48
48
- env : TARGET=x86_64-apple-darwin
49
49
os : osx
50
50
51
+ # Windows
52
+ - env : TARGET=x86_64-pc-windows-msvc
53
+ os : windows
54
+
51
55
install :
52
56
- bash ci/install.sh
53
57
@@ -76,6 +80,8 @@ branches:
76
80
only :
77
81
- staging
78
82
- trying
83
+ # release tags
84
+ - /^v\d+\.\d+\.\d+.*$/
79
85
80
86
notifications :
81
87
email :
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
2
2
3
3
main () {
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
6
9
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
15
11
16
- cross rustc --bin svd2rust --target $TARGET --release -- -C lto
12
+ rm -rf stage
13
+ mkdir stage
14
+ cp target/$TARGET /release/svd2rust stage
17
15
18
- cp target/$TARGET /release/svd2rust $stage /
16
+ pushd stage
17
+ tar czf ../$CRATE_NAME -$TRAVIS_TAG -$TARGET .tar.gz *
18
+ popd
19
19
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
25
21
}
26
22
27
23
main
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ set -euxo pipefail
2
2
3
3
main () {
4
4
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
6
8
sort=sort
7
9
else
8
10
sort=gsort
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ test_svd() {
22
22
}
23
23
24
24
main () {
25
+ if [ $TRAVIS_OS_NAME = windows ]; then
26
+ cargo check --target $TARGET
27
+ return
28
+ fi
29
+
25
30
cross check --target $TARGET
26
31
27
32
if [ -z ${VENDOR-} ]; then
You can’t perform that action at this time.
0 commit comments