Skip to content

Commit 401af1e

Browse files
authored
ci: fix and update all workflows (#50)
Replace macos-13 runners with macos-latest. The macos-13 runners are no longer available, causing all macOS CI jobs in the system and packaged_tarball workflows to be cancelled every week since late 2025. Update the Ruby matrix across all workflows from [3.0, 3.1, 3.2, 3.3, 3.4, head] to [3.2, 3.3, 3.4, 4.0, head], dropping EOL rubies and adding 4.0. Pass CONFIGURE_ARGS with the homebrew libyaml prefix on macOS in the system workflow. The ruby-dev-builder prebuilt head binary is configured with --with-openssl-dir and --with-readline-dir but not --with-opt-dir, so on ARM macOS runners (where homebrew installs to /opt/homebrew rather than /usr/local) the compiler can't find yaml.h without explicit paths.
1 parent 8f32001 commit 401af1e

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/isolated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4", "head"]
26+
ruby: ["3.2", "3.3", "3.4", "4.0", "head"]
2727
runs-on: ["ubuntu-latest", "macos-latest", "windows-latest"]
2828
runs-on: ${{matrix.runs-on}}
2929
steps:

.github/workflows/packaged_source.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4", "head"]
26+
ruby: ["3.2", "3.3", "3.4", "4.0", "head"]
2727
runs-on: ["ubuntu-latest", "macos-latest", "windows-latest"]
2828
runs-on: ${{matrix.runs-on}}
2929
steps:

.github/workflows/packaged_tarball.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4", "head"]
27-
runs-on: ["ubuntu-latest", "macos-13", "windows-latest"]
26+
ruby: ["3.2", "3.3", "3.4", "4.0", "head"]
27+
runs-on: ["ubuntu-latest", "macos-latest", "windows-latest"]
2828
runs-on: ${{matrix.runs-on}}
2929
steps:
3030
- uses: actions/checkout@v4

.github/workflows/system.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
ruby: ["3.0", "3.1", "3.2", "3.3", "3.4", "head"]
27-
runs-on: ["ubuntu-latest", "macos-13", "windows-latest"]
26+
ruby: ["3.2", "3.3", "3.4", "4.0", "head"]
27+
runs-on: ["ubuntu-latest", "macos-latest", "windows-latest"]
2828
runs-on: ${{matrix.runs-on}}
2929
steps:
3030
- uses: actions/checkout@v4
@@ -36,5 +36,7 @@ jobs:
3636
mingw: "libyaml" # windows
3737
apt-get: "libyaml-dev" # linux
3838
brew: "libyaml" # macos
39+
- if: runner.os == 'macOS'
40+
run: echo "CONFIGURE_ARGS=--with-libyaml-dir=$(brew --prefix libyaml)" >> $GITHUB_ENV
3941
- run: bundle exec rake compile test
4042
working-directory: system

0 commit comments

Comments
 (0)