Update CI scripts for second post

This commit is contained in:
Philipp Oppermann
2019-01-27 15:27:16 +01:00
parent 752a7ed84e
commit 8d730050d3
2 changed files with 14 additions and 2 deletions

View File

@@ -67,6 +67,10 @@ before_test:
# Fix undefined references to __acrt_iob_func()
- sed -rie "s/#define std([[:alpha:]]+)[[:space:]]+\(__acrt_iob_func\(([[:digit:]]+)\)\)/#define std\1 (\&__iob_func()[\2])/" "C:\msys64\mingw64\x86_64-w64-mingw32\include\stdio.h"
- sed -rie "s/#define std([[:alpha:]]+)[[:space:]]+\(__acrt_iob_func\(([[:digit:]]+)\)\)/#define std\1 (\&__iob_func()[\2])/" "C:\msys64\mingw32\i686-w64-mingw32\include\stdio.h"
- rustup component add rust-src
- set RUST_BACKTRACE=1
- if not exist %USERPROFILE%\.cargo\bin\cargo-install-latest.exe cargo install cargo-install-latest
- cargo install-latest cargo-xbuild bootimage
test_script:
- cargo --version
- bootimage build

View File

@@ -5,6 +5,8 @@ rust:
os:
- linux
- osx
- windows
notifications:
email:
@@ -26,5 +28,11 @@ cache:
directories:
- $HOME/.cargo
before_script:
- rustup component add rust-src
- (test -x $HOME/.cargo/bin/cargo-install-latest || cargo install cargo-install-latest)
- cargo install-latest cargo-xbuild bootimage cargo-cache
script:
- cargo rustc -- -Z pre-link-arg=-nostartfiles
- bootimage build
- cargo cache --autoclean