Skip to content

Commit 4c11bb3

Browse files
committed
Merge pull request #1680 from pguyot/w22/fix-macos-compilation-otp-28
Fix macOS compilation with OTP 28 and new rebar 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 8d4f451 + 1b0280b commit 4c11bb3

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
matrix:
4040
os: ["macos-13", "macos-14", "macos-15"]
41-
otp: ["24", "25", "26", "27"]
41+
otp: ["24", "25", "26", "27", "28"]
4242

4343
steps:
4444
# Setup
@@ -48,20 +48,17 @@ jobs:
4848
submodules: 'recursive'
4949

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

5454
- name: "Install deps"
55-
if: matrix.otp == '24'
55+
if: matrix.otp == '24' || matrix.otp == '25'
5656
run: |
5757
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install gperf doxygen erlang@${{ matrix.otp }} gleam ninja mbedtls
5858
wget https://github.com/erlang/rebar3/releases/download/3.23.0/rebar3
5959
chmod +x rebar3
60-
if [ -e /usr/local/opt/erlang@24/bin/ ] ; then
61-
sudo cp rebar3 /usr/local/opt/erlang@24/bin/
62-
fi
63-
if [ -e /opt/homebrew/opt/erlang@24/bin/ ] ; then
64-
sudo cp rebar3 /opt/homebrew/opt/erlang@24/bin/
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/
6562
fi
6663
6764
# Builder info

0 commit comments

Comments
 (0)