Skip to content

Commit

Permalink
Set some deploy scripts to reference the right artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmorley committed Dec 14, 2017
1 parent f746515 commit 7e2b1c4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oktaws"
version = "0.9.0"
version = "0.9.1"
authors = ["Jonathan Morley <[email protected]>"]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test_script:

before_deploy:
# TODO Update this to build the artifacts that matter to you
- cargo rustc --target %TARGET% --release --bin hello -- -C lto
- cargo rustc --target %TARGET% --release --bin oktaws -- -C lto
- ps: ci\before_deploy.ps1

deploy:
Expand Down
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\oktaws.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 oktaws --target $TARGET --release -- -C lto

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

cd $stage
tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
Expand Down
5 changes: 3 additions & 2 deletions ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ main() {
esac

# This fetches latest stable release
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/japaric/cross \
# TODO: Update for your repo
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/jonathanmorley/oktaws \
| cut -d/ -f3 \
| grep -E '^v[0.1.0-9.]+$' \
| $sort --version-sort \
| tail -n1)
curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- \
--force \
--git japaric/cross \
--git jonathanmorley/oktaws \
--tag $tag \
--target $target
}
Expand Down

0 comments on commit 7e2b1c4

Please sign in to comment.