mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 06:17:49 +00:00
Update CI scripts for second post
This commit is contained in:
@@ -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
|
||||
|
||||
10
.travis.yml
10
.travis.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user