mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Upgrade to cargo 0.16.0-nightly (built 2016-12-06)
Instead of once per day (or night) with a date in the URL, Cargo binaries are now built and published for every merge to master (with the merge commit hash in the URL).
This commit is contained in:
parent
2e1c40ec36
commit
f5af40d694
5 changed files with 5 additions and 5 deletions
|
@ -39,8 +39,8 @@ platform:
|
|||
- x64
|
||||
|
||||
cache:
|
||||
- .servo -> rust-nightly-date, cargo-nightly-build
|
||||
- .cargo -> rust-nightly-date, cargo-nightly-build
|
||||
- .servo -> rust-nightly-date, cargo-commit-hash
|
||||
- .cargo -> rust-nightly-date, cargo-commit-hash
|
||||
|
||||
install:
|
||||
- if %TARGET:*-msvc=msvc%==msvc set BUILD_ENV=msvc
|
||||
|
|
1
cargo-commit-hash
Normal file
1
cargo-commit-hash
Normal file
|
@ -0,0 +1 @@
|
|||
5e3221eac240f1e2c719524ea3c15fde9329dec2
|
|
@ -1 +0,0 @@
|
|||
2016-10-27
|
|
@ -295,7 +295,7 @@ class MachCommands(CommandBase):
|
|||
os.makedirs(cargo_dir)
|
||||
|
||||
tgz_file = "cargo-nightly-%s.tar.gz" % host_triple()
|
||||
nightly_url = "https://static-rust-lang-org.s3.amazonaws.com/cargo-dist/%s/%s" % \
|
||||
nightly_url = "https://s3.amazonaws.com/rust-lang-ci/cargo-builds/%s/%s" % \
|
||||
(self.cargo_build_id(), tgz_file)
|
||||
|
||||
download_file("Cargo nightly", nightly_url, tgz_file)
|
||||
|
|
|
@ -336,7 +336,7 @@ class CommandBase(object):
|
|||
|
||||
def cargo_build_id(self):
|
||||
if self._cargo_build_id is None:
|
||||
filename = path.join(self.context.topdir, "cargo-nightly-build")
|
||||
filename = path.join(self.context.topdir, "cargo-commit-hash")
|
||||
with open(filename) as f:
|
||||
self._cargo_build_id = f.read().strip()
|
||||
return self._cargo_build_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue