Skip to content

Commit 9400ce7

Browse files
authored
Merge pull request #2220 from kinnison/macos-update-stable
Fix the macOS stable install rules to match Linux
2 parents a99da2d + 5439cde commit 9400ce7

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/macos-builds-on-all.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

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)