Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,6 @@ jobs:
- name: Install protobuf (Windows)
if: runner.os == 'Windows'
run: choco install protoc -y
- name: Remove pre-installed Homebrew rust (macOS)
# Recent macos-14 runner images ship Homebrew's `rust` package,
# which symlinks `cargo` to `rustup-init`. With no toolchain
# installed, `cargo test` then invokes rustup-init's CLI parser
# and fails with "unexpected argument 'test' found". Removing
# brew's rust before installing the real toolchain avoids the
# symlink shadowing.
if: runner.os == 'macOS'
shell: bash
run: |
brew list rust >/dev/null 2>&1 && brew uninstall --ignore-dependencies rust || true
rm -f /usr/local/bin/cargo /usr/local/bin/rustc /usr/local/bin/rustup-init || true
rm -f /opt/homebrew/bin/cargo /opt/homebrew/bin/rustc /opt/homebrew/bin/rustup-init || true

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/npm-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,6 @@ jobs:
if: runner.os == 'Windows'
run: choco install protoc -y

- name: Remove pre-installed Homebrew rust (macOS)
# See ci.yml for context — macos-14 runners ship Homebrew's
# `rust` package which symlinks `cargo` to `rustup-init` and
# shadows the real toolchain.
if: runner.os == 'macOS'
shell: bash
run: |
brew list rust >/dev/null 2>&1 && brew uninstall --ignore-dependencies rust || true
rm -f /usr/local/bin/cargo /usr/local/bin/rustc /usr/local/bin/rustup-init || true
rm -f /opt/homebrew/bin/cargo /opt/homebrew/bin/rustc /opt/homebrew/bin/rustup-init || true

- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
Expand Down
Loading