Skip to content

Commit

Permalink
CI: fix macOS build for recent Homebrew update (#7590)
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix authored and elprans committed Jul 24, 2024
1 parent 6da727c commit 6f7fed2
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 9 deletions.
12 changes: 11 additions & 1 deletion .github/workflows.src/build.inc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,18 @@
ref: master
path: edgedb-pkg

- name: Update Homebrew before installing Rust toolchain
run: |
# Homebrew renamed `rustup-init` to `rustup`:
# https://github.com/Homebrew/homebrew-core/pull/177840
# But the GitHub Action runner is not updated with this change yet.
# This caused the later `brew update` in step `Build` to relink Rust
# toolchain executables, overwriting the custom toolchain installed by
# `dtolnay/rust-toolchain`. So let's just run `brew update` early.
brew update
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
if: << 'false' if tgt.runs_on and 'self-hosted' in tgt.runs_on else 'true' >>
with:
components: "cargo,rustc,rust-std"
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/dryrun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,18 @@ jobs:
ref: master
path: edgedb-pkg

- name: Update Homebrew before installing Rust toolchain
run: |
# Homebrew renamed `rustup-init` to `rustup`:
# https://github.com/Homebrew/homebrew-core/pull/177840
# But the GitHub Action runner is not updated with this change yet.
# This caused the later `brew update` in step `Build` to relink Rust
# toolchain executables, overwriting the custom toolchain installed by
# `dtolnay/rust-toolchain`. So let's just run `brew update` early.
brew update
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
if: true
with:
components: "cargo,rustc,rust-std"
Expand Down Expand Up @@ -959,8 +969,18 @@ jobs:
ref: master
path: edgedb-pkg

- name: Update Homebrew before installing Rust toolchain
run: |
# Homebrew renamed `rustup-init` to `rustup`:
# https://github.com/Homebrew/homebrew-core/pull/177840
# But the GitHub Action runner is not updated with this change yet.
# This caused the later `brew update` in step `Build` to relink Rust
# toolchain executables, overwriting the custom toolchain installed by
# `dtolnay/rust-toolchain`. So let's just run `brew update` early.
brew update
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
if: true
with:
components: "cargo,rustc,rust-std"
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -906,8 +906,18 @@ jobs:
ref: master
path: edgedb-pkg

- name: Update Homebrew before installing Rust toolchain
run: |
# Homebrew renamed `rustup-init` to `rustup`:
# https://github.com/Homebrew/homebrew-core/pull/177840
# But the GitHub Action runner is not updated with this change yet.
# This caused the later `brew update` in step `Build` to relink Rust
# toolchain executables, overwriting the custom toolchain installed by
# `dtolnay/rust-toolchain`. So let's just run `brew update` early.
brew update
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
if: true
with:
components: "cargo,rustc,rust-std"
Expand Down Expand Up @@ -964,8 +974,18 @@ jobs:
ref: master
path: edgedb-pkg

- name: Update Homebrew before installing Rust toolchain
run: |
# Homebrew renamed `rustup-init` to `rustup`:
# https://github.com/Homebrew/homebrew-core/pull/177840
# But the GitHub Action runner is not updated with this change yet.
# This caused the later `brew update` in step `Build` to relink Rust
# toolchain executables, overwriting the custom toolchain installed by
# `dtolnay/rust-toolchain`. So let's just run `brew update` early.
brew update
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
if: true
with:
components: "cargo,rustc,rust-std"
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,18 @@ jobs:
ref: master
path: edgedb-pkg

- name: Update Homebrew before installing Rust toolchain
run: |
# Homebrew renamed `rustup-init` to `rustup`:
# https://github.com/Homebrew/homebrew-core/pull/177840
# But the GitHub Action runner is not updated with this change yet.
# This caused the later `brew update` in step `Build` to relink Rust
# toolchain executables, overwriting the custom toolchain installed by
# `dtolnay/rust-toolchain`. So let's just run `brew update` early.
brew update
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
if: true
with:
components: "cargo,rustc,rust-std"
Expand Down Expand Up @@ -558,8 +568,18 @@ jobs:
ref: master
path: edgedb-pkg

- name: Update Homebrew before installing Rust toolchain
run: |
# Homebrew renamed `rustup-init` to `rustup`:
# https://github.com/Homebrew/homebrew-core/pull/177840
# But the GitHub Action runner is not updated with this change yet.
# This caused the later `brew update` in step `Build` to relink Rust
# toolchain executables, overwriting the custom toolchain installed by
# `dtolnay/rust-toolchain`. So let's just run `brew update` early.
brew update
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
if: true
with:
components: "cargo,rustc,rust-std"
Expand Down
24 changes: 22 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,18 @@ jobs:
ref: master
path: edgedb-pkg

- name: Update Homebrew before installing Rust toolchain
run: |
# Homebrew renamed `rustup-init` to `rustup`:
# https://github.com/Homebrew/homebrew-core/pull/177840
# But the GitHub Action runner is not updated with this change yet.
# This caused the later `brew update` in step `Build` to relink Rust
# toolchain executables, overwriting the custom toolchain installed by
# `dtolnay/rust-toolchain`. So let's just run `brew update` early.
brew update
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
if: true
with:
components: "cargo,rustc,rust-std"
Expand Down Expand Up @@ -580,8 +590,18 @@ jobs:
ref: master
path: edgedb-pkg

- name: Update Homebrew before installing Rust toolchain
run: |
# Homebrew renamed `rustup-init` to `rustup`:
# https://github.com/Homebrew/homebrew-core/pull/177840
# But the GitHub Action runner is not updated with this change yet.
# This caused the later `brew update` in step `Build` to relink Rust
# toolchain executables, overwriting the custom toolchain installed by
# `dtolnay/rust-toolchain`. So let's just run `brew update` early.
brew update
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
if: true
with:
components: "cargo,rustc,rust-std"
Expand Down

0 comments on commit 6f7fed2

Please sign in to comment.