summaryrefslogtreecommitdiff
path: root/tools/update-nightly
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2020-07-31 15:44:11 -0400
committerGitHub <noreply@github.com>2020-07-31 15:44:11 -0400
commitedf5b562c09964f4a8f72549b955a07f8ca20322 (patch)
tree36476d38b9208a5adb29b8bc46ab0bbf6f83a1e3 /tools/update-nightly
parent64e55bc32a48e78a3b08add63b5155adb14744b6 (diff)
parentf6b35d12a4328acc7a0f85c7e383251c2823143b (diff)
Merge pull request #17 from ojacobson/auto-update-nightly
Automate periodic Rust Nightly upgrades.
Diffstat (limited to 'tools/update-nightly')
-rwxr-xr-xtools/update-nightly8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/update-nightly b/tools/update-nightly
new file mode 100755
index 0000000..7567110
--- /dev/null
+++ b/tools/update-nightly
@@ -0,0 +1,8 @@
+#!/bin/bash -ex
+
+# tools/update-nightly
+#
+# Install today's nightly Rust release.
+
+date "+nightly-%Y-%m-%d" > rust-toolchain
+rustup install --profile minimal "$(< rust-toolchain)"