Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it is called cargo-sweep not hello #18

Merged
merged 1 commit into from
Jan 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/before_deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Set-Location $STAGE
$ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip"

# TODO Update this to package the right artifacts
Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\hello.exe" '.\'
Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\cargo-sweep.exe" '.\'

7z a "$ZIP" *

Expand Down
4 changes: 2 additions & 2 deletions ci/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ main() {
test -f Cargo.lock || cargo generate-lockfile

# TODO Update this to build the artifacts that matter to you
cross rustc --bin hello --target $TARGET --release -- -C lto
cross rustc --bin cargo-sweep --target $TARGET --release -- -C lto

# TODO Update this to package the right artifacts
cp target/$TARGET/release/hello $stage/
cp target/$TARGET/release/cargo-sweep $stage/

cd $stage
tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
Expand Down
8 changes: 8 additions & 0 deletions test.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cargo clean
cargo +nightly build
cargo +stable build
cargo sweep -s
cargo +stable build
cargo sweep -f
cargo +stable build
cargo +nightly build
12 changes: 12 additions & 0 deletions test2.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\rustc.exe
"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build
set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe
"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build
"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" sweep -s
set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe
"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build
"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" sweep -f
set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe
"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build
set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\rustc.exe
"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build