mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Use cargo-update-installed instead of cargo-update (#491)
This commit is contained in:
committed by
GitHub
parent
92c27c6545
commit
070e81964e
@@ -81,10 +81,10 @@ before_test:
|
|||||||
- 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
|
- rustup component add rust-src
|
||||||
- set RUST_BACKTRACE=1
|
- set RUST_BACKTRACE=1
|
||||||
- if not exist %USERPROFILE%\.cargo\bin\cargo-install-update.exe cargo install cargo-update
|
- if not exist %USERPROFILE%\.cargo\bin\cargo-update-installed.exe cargo install cargo-update-installed
|
||||||
- if not exist %USERPROFILE%\.cargo\bin\cargo-xbuild.exe cargo install cargo-xbuild
|
- if not exist %USERPROFILE%\.cargo\bin\cargo-xbuild.exe cargo install cargo-xbuild
|
||||||
- if not exist %USERPROFILE%\.cargo\bin\bootimage.exe cargo install bootimage
|
- if not exist %USERPROFILE%\.cargo\bin\bootimage.exe cargo install bootimage
|
||||||
- cargo install-update -a
|
- cargo update-installed
|
||||||
|
|
||||||
# Uses 'cargo test' to run tests and build. Alternatively, the project may call compiled programs
|
# Uses 'cargo test' to run tests and build. Alternatively, the project may call compiled programs
|
||||||
# directly or perform other testing commands. Rust will automatically be placed in the PATH
|
# directly or perform other testing commands. Rust will automatically be placed in the PATH
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ install:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- rustup component add rust-src
|
- rustup component add rust-src
|
||||||
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
- (test -x $HOME/.cargo/bin/cargo-update-installed || cargo install cargo-update-installed)
|
||||||
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
|
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
|
||||||
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
|
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
|
||||||
- cargo install-update -a
|
- cargo update-installed
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bootimage build
|
- bootimage build
|
||||||
|
|||||||
Reference in New Issue
Block a user