about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-16 10:59:18 +0000
committerbors <bors@rust-lang.org>2023-07-16 10:59:18 +0000
commit0548274b4b746f708ac0fd7ed772e5413afeba3e (patch)
tree7e19353da9f836b9c9dfc3c97dd568434e1f6664
parentbe6b42fa1d32d4c3e1fc8937f1561f9a08574eba (diff)
parent8480847ed8d835239c55e345a0c1b0935b23a19c (diff)
downloadrust-0548274b4b746f708ac0fd7ed772e5413afeba3e.tar.gz
rust-0548274b4b746f708ac0fd7ed772e5413afeba3e.zip
Auto merge of #2981 - RalfJung:style, r=RalfJung
style checks: use latest rustc for cron job
-rw-r--r--src/tools/miri/.github/workflows/ci.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/miri/.github/workflows/ci.yml b/src/tools/miri/.github/workflows/ci.yml
index c87b3e42323..452677d9146 100644
--- a/src/tools/miri/.github/workflows/ci.yml
+++ b/src/tools/miri/.github/workflows/ci.yml
@@ -115,7 +115,12 @@ jobs:
         run: cargo install -f rustup-toolchain-install-master
 
       - name: Install "master" toolchain
-        run: ./miri toolchain
+        run: |
+          if [[ ${{ github.event_name }} == 'schedule' ]]; then
+            echo "Building against latest rustc git version"
+            git ls-remote https://github.com/rust-lang/rust/ HEAD | cut -f 1 > rust-version
+          fi
+          ./miri toolchain
 
       - name: Show Rust version
         run: |
@@ -203,7 +208,7 @@ jobs:
           ./miri fmt --check || (./miri fmt && git commit -am "fmt")
       - name: Push changes to a branch
         run: |
-          BRANCH="rustup$(date -u +%Y-%m-%d)"
+          BRANCH="rustup-$(date -u +%Y-%m-%d)"
           git switch -c $BRANCH
           git push -u origin $BRANCH
       - name: Create Pull Request