Skip to content

Commit 9f14ab0

Browse files
committed
Fix errors building Ruby 3.1 on macos 15
by pinning to macos-14. I believe this problem started when Github upgraded to macOS 15: > The macos-latest label will migrate to macOS 15 beginning August 4, 2025 The error when system libraries are disabled: ./libtool: line 1871: /Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: No such file or directory The error when system libraries are enabled: make: /Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: No such file or directory (cherry picked from commit 1dac08d)
1 parent 1dcd8ce commit 9f14ab0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ jobs:
271271
matrix:
272272
sys: ["enable", "disable"]
273273
ruby: ${{ fromJSON(needs.ruby_versions.outputs.setup_ruby) }}
274-
runs-on: macos-latest
274+
include:
275+
- { ruby: "3.1", os: macos-14 }
276+
runs-on: ${{ matrix.os || 'macos-latest' }}
275277
steps:
276278
- uses: actions/checkout@v4
277279
with:
@@ -526,7 +528,9 @@ jobs:
526528
matrix:
527529
sys: ["enable", "disable"]
528530
ruby: ${{ fromJSON(needs.ruby_versions.outputs.setup_ruby) }}
529-
runs-on: macos-latest
531+
include:
532+
- { ruby: "3.1", os: macos-14 }
533+
runs-on: ${{ matrix.os || 'macos-latest' }}
530534
steps:
531535
- uses: actions/checkout@v4
532536
with:

0 commit comments

Comments
 (0)