Skip to content

Commit c46da1a

Browse files
authored
Feature/update brew version (#369)
Fix for errors observed while installing packages with homebrew. Until Github runners are updated to use latest hombrew versions, manually updating homebrew in Github workflows. Homebrew/brew#11070 Homebrew/discussions#691
1 parent 9e448d0 commit c46da1a

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

.github/workflows/android.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ jobs:
7878
path: /tmp/android-ndk-r16b
7979
key: android-ndk-${{ matrix.os }}-r16b
8080

81+
- name: Update homebrew (avoid bintray errors)
82+
if: startsWith(matrix.os, 'macos')
83+
run: |
84+
# Temporarily here until Github runners have updated their version of
85+
# homebrew. This prevents errors arising from the shut down of
86+
# binutils, used by older version of homebrew for hosting packages.
87+
brew update
88+
8189
- name: Install prerequisites
8290
shell: bash
8391
run: |

.github/workflows/cpp-packaging.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,14 @@ jobs:
327327
with:
328328
python-version: ${{ matrix.python_version }}
329329

330+
- name: Update homebrew (avoid bintray errors)
331+
if: runner.os == 'macOS'
332+
run: |
333+
# Temporarily here until Github runners have updated their version of
334+
# homebrew. This prevents errors arising from the shut down of
335+
# binutils, used by older version of homebrew for hosting packages.
336+
brew update
337+
330338
- name: Install prerequisites
331339
run: |
332340
python scripts/gha/install_prereqs_desktop.py
@@ -432,6 +440,14 @@ jobs:
432440
with:
433441
python-version: 3.7
434442

443+
- name: Update homebrew (avoid bintray errors)
444+
if: runner.os == 'macOS'
445+
run: |
446+
# Temporarily here until Github runners have updated their version of
447+
# homebrew. This prevents errors arising from the shut down of
448+
# binutils, used by older version of homebrew for hosting packages.
449+
brew update
450+
435451
- name: Install prerequisites
436452
run: |
437453
cd sdk-src

.github/workflows/desktop.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ jobs:
136136
python-version: ${{ matrix.python_version }}
137137
architecture: 'x64'
138138

139+
- name: Update homebrew (avoid bintray errors)
140+
if: startsWith(matrix.os, 'macos')
141+
run: |
142+
# Temporarily here until Github runners have updated their version of
143+
# homebrew. This prevents errors arising from the shut down of
144+
# binutils, used by older version of homebrew for hosting packages.
145+
brew update
146+
139147
- name: Install prerequisites
140148
run: |
141149
python scripts/gha/install_prereqs_desktop.py

.github/workflows/integration_tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,14 @@ jobs:
265265
with:
266266
python-version: '3.7'
267267

268+
- name: Update homebrew (avoid bintray errors)
269+
if: startsWith(matrix.os, 'macos')
270+
run: |
271+
# Temporarily here until Github runners have updated their version of
272+
# homebrew. This prevents errors arising from the shut down of
273+
# binutils, used by older version of homebrew for hosting packages.
274+
brew update
275+
268276
- name: Install SDK Desktop prerequisites
269277
if: matrix.target_platform == 'Desktop'
270278
run: |

0 commit comments

Comments
 (0)