Skip to content

Commit 47a75bc

Browse files
committed
ci: Ensure macOS builds use same technique for updating stable
Linux builds had stable update action steps, but for some reason macOS was lacking them. This sorts that out. Signed-off-by: Daniel Silverstone <[email protected]>
1 parent a99da2d commit 47a75bc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ci/actions-templates/macos-builds-template.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,15 @@ jobs:
5858
key: ${{ runner.os }}-cargo-build-trimmed-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
5959
- name: Install Rustup using ./rustup-init.sh
6060
run: |
61-
sh ./rustup-init.sh --default-toolchain=stable --profile=minimal -y
61+
sh ./rustup-init.sh --default-toolchain=none --profile=minimal -y
62+
- name: Ensure Stable is up to date
63+
run: |
64+
if rustc +stable -vV >/dev/null 2>/dev/null; then
65+
rustup toolchain uninstall stable
66+
fi
67+
rustup toolchain install --profile=minimal stable
68+
- name: Ensure we have our goal target installed
69+
run: |
6270
rustup target install "$TARGET"
6371
- name: Run a full build and test
6472
run: bash ci/run.bash

0 commit comments

Comments
 (0)