Skip to content

Commit 0548274

Browse files
committed
Auto merge of rust-lang#2981 - RalfJung:style, r=RalfJung
style checks: use latest rustc for cron job
2 parents be6b42f + 8480847 commit 0548274

File tree

1 file changed

+7
-2
lines changed
  • src/tools/miri/.github/workflows

1 file changed

+7
-2
lines changed

src/tools/miri/.github/workflows/ci.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ jobs:
115115
run: cargo install -f rustup-toolchain-install-master
116116

117117
- name: Install "master" toolchain
118-
run: ./miri toolchain
118+
run: |
119+
if [[ ${{ github.event_name }} == 'schedule' ]]; then
120+
echo "Building against latest rustc git version"
121+
git ls-remote https://github.com/rust-lang/rust/ HEAD | cut -f 1 > rust-version
122+
fi
123+
./miri toolchain
119124
120125
- name: Show Rust version
121126
run: |
@@ -203,7 +208,7 @@ jobs:
203208
./miri fmt --check || (./miri fmt && git commit -am "fmt")
204209
- name: Push changes to a branch
205210
run: |
206-
BRANCH="rustup$(date -u +%Y-%m-%d)"
211+
BRANCH="rustup-$(date -u +%Y-%m-%d)"
207212
git switch -c $BRANCH
208213
git push -u origin $BRANCH
209214
- name: Create Pull Request

0 commit comments

Comments
 (0)