mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27: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()
|
# 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\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"
|
- 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:
|
test_script:
|
||||||
- cargo --version
|
- bootimage build
|
||||||
|
|||||||
10
.travis.yml
10
.travis.yml
@@ -5,6 +5,8 @@ rust:
|
|||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
|
- osx
|
||||||
|
- windows
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
@@ -26,5 +28,11 @@ cache:
|
|||||||
directories:
|
directories:
|
||||||
- $HOME/.cargo
|
- $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:
|
script:
|
||||||
- cargo rustc -- -Z pre-link-arg=-nostartfiles
|
- bootimage build
|
||||||
|
- cargo cache --autoclean
|
||||||
|
|||||||
Reference in New Issue
Block a user