Skip to content

Commit 0809fe5

Browse files
committed
Make binary size check CI workflow platform independent.
- Use the platform-independent symlink to the build artefacts. - Specify bash shell on steps that require it.
1 parent 3ff4632 commit 0809fe5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/actions/build-with-patched-std/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ runs:
2727
id: measure
2828
env:
2929
RUSTC_FLAGS: -Copt-level=3 -Cstrip=symbols
30-
RUSTC_BUILD_DIR: build/x86_64-unknown-linux-gnu
30+
# This symlink is made by Build::new() in the bootstrap crate, using a
31+
# symlink on Linux and a junction on Windows, so it will exist on both
32+
# platforms.
33+
RUSTC_BUILD_DIR: build/host
3134
working-directory: ${{ inputs.rustc-dir }}
3235
run: |
3336
rm -rf "$RUSTC_BUILD_DIR/stage0-std"

.github/workflows/check-binary-size.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
binary-size-updated: ${{ steps.size-updated.outputs.test-binary-size }}
3232
steps:
3333
- name: Print info
34+
shell: bash
3435
run: |
3536
echo "Current SHA: $HEAD_COMMIT"
3637
echo "Base SHA: $BASE_COMMIT"
@@ -47,6 +48,7 @@ jobs:
4748
repository: rust-lang/rust
4849
path: ${{ env.RUSTC_DIR }}
4950
- name: Set up std repository and backtrace submodule for size test
51+
shell: bash
5052
working-directory: ${{ env.RUSTC_DIR }}
5153
run: |
5254
# Bootstrap config

0 commit comments

Comments
 (0)