Skip to content

Commit e6e574b

Browse files
committed
Merge pull request #1682 from pguyot/w22/fix-macos-ci
Fix macOS CI These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 8bdffad + c51bbf7 commit e6e574b

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

.github/workflows/build-and-test-macos.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,21 @@ jobs:
4848
submodules: 'recursive'
4949

5050
- name: "Install deps"
51-
if: matrix.otp != '24' && matrix.otp != '25
52-
run: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gperf doxygen erlang@${{ matrix.otp }} gleam ninja mbedtls rebar3
51+
if: matrix.otp != '24' && matrix.otp != '25'
52+
run: brew update && HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gperf doxygen erlang@${{ matrix.otp }} gleam mbedtls rebar3
5353

5454
- name: "Install deps"
5555
if: matrix.otp == '24' || matrix.otp == '25'
5656
run: |
57-
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gperf doxygen erlang@${{ matrix.otp }} gleam ninja mbedtls
57+
brew update
58+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gperf doxygen erlang@${{ matrix.otp }} gleam mbedtls
5859
wget https://github.com/erlang/rebar3/releases/download/3.23.0/rebar3
5960
chmod +x rebar3
60-
if [ -e {/usr/local,/opt/homebrew}/opt/erlang@{24,25}/bin/ ] ; then
61-
sudo cp rebar3 {/usr/local,/opt/homebrew}/opt/erlang@{24,25}/bin/
62-
fi
61+
for bin_dir in {/usr/local,/opt/homebrew}/opt/erlang@{24,25}/bin/ ; do
62+
if [ -e ${bin_dir} ]; then
63+
sudo cp rebar3 ${bin_dir}
64+
fi
65+
done
6366
6467
# Builder info
6568
- name: "System info"

.github/workflows/run-tests-with-beam.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ jobs:
7171
container: erlang:27
7272

7373
# This is ARM64
74-
- os: "macos-14"
75-
otp: "25"
76-
path_prefix: "/opt/homebrew/opt/erlang@25/bin:"
77-
78-
- os: "macos-14"
74+
- os: "macos-15"
7975
otp: "26"
8076
path_prefix: "/opt/homebrew/opt/erlang@26/bin:"
8177

82-
- os: "macos-14"
78+
- os: "macos-15"
8379
otp: "27"
8480
path_prefix: "/opt/homebrew/opt/erlang@27/bin:"
81+
82+
- os: "macos-15"
83+
otp: "28"
84+
path_prefix: "/opt/homebrew/opt/erlang@28/bin:"
8585
steps:
8686
# Setup
8787
- name: "Checkout repo"
@@ -97,7 +97,7 @@ jobs:
9797
9898
- name: "Install deps (macOS)"
9999
if: runner.os == 'macOS'
100-
run: brew install gperf erlang@${{ matrix.otp }} ninja mbedtls rebar3
100+
run: brew update && brew install gperf erlang@${{ matrix.otp }} mbedtls rebar3
101101

102102
# Build
103103
- name: "Build: create build dir"

0 commit comments

Comments
 (0)