Skip to content

Commit

Permalink
Fallback every macos-arm-oss usage to macos-14 (#10074)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Feb 22, 2024
1 parent bccf4b3 commit cdca942
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -39,8 +39,7 @@ jobs:
security-events: write # for github/codeql-action/autobuild to send a status report
# CodeQL fails to run pull requests from dependabot due to missing write access to upload results.
if: >-
${{github.repository == 'ruby/ruby' &&
!(false
${{!(false
|| contains(github.event.head_commit.message, '[DOC]')
|| contains(github.event.pull_request.title, '[DOC]')
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
Expand All @@ -58,14 +57,14 @@ jobs:
os: ubuntu-latest
# ruby analysis used large memory. We need to use a larger runner.
- language: ruby
os: macos-arm-oss
os: ${{ github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14' }}

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Install libraries
if: ${{ matrix.os == 'macos-arm-oss' }}
if: ${{ contains(matrix.os, 'macos') }}
uses: ./.github/actions/setup/macos

- name: Install libraries
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/macos.yml
Expand Up @@ -25,12 +25,15 @@ jobs:
strategy:
matrix:
test_task: ['check']
os: ${{ fromJSON(format('["macos-12","macos-13"{0}]', (github.repository == 'ruby/ruby' && ',"macos-arm-oss"' || ''))) }}
os:
- macos-12
- macos-13
- ${{ github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14' }}
include:
- test_task: test-all TESTS=--repeat-count=2
os: ${{ github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-13' }}
os: ${{ github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14' }}
- test_task: test-bundled-gems
os: ${{ github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-13' }}
os: ${{ github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14' }}
fail-fast: false

env:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/yjit-macos.yml
Expand Up @@ -24,11 +24,10 @@ jobs:
cargo:
name: cargo test

runs-on: macos-arm-oss
runs-on: ${{ github.repository == 'ruby/ruby' && 'macos-arm-oss' || 'macos-14' }}

if: >-
${{github.repository == 'ruby/ruby' &&
!(false
${{!(false
|| contains(github.event.head_commit.message, '[DOC]')
|| contains(github.event.pull_request.title, '[DOC]')
|| contains(github.event.pull_request.labels.*.name, 'Documentation')
Expand Down

0 comments on commit cdca942

Please sign in to comment.