Skip to content

Commit 043fb7a

Browse files
committed
Install XQuartz via brew before opening it in CI
Both the build and test jobs relied on XQuartz being pre-installed on the macOS runner. Add an explicit `brew install --cask xquartz` step before `open -a XQuartz` so the display server is always available regardless of runner image.
1 parent 1d217af commit 043fb7a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test-on-push.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ jobs:
5656
bundler-cache: true
5757
brew: "xz fox swig"
5858

59-
- name: Start XQuartz
60-
run: open -a XQuartz
59+
- name: Install and start XQuartz
60+
run: |
61+
brew install --cask xquartz
62+
open -a XQuartz
6163
6264
- name: Build stub and run tests
6365
run: |
@@ -83,6 +85,11 @@ jobs:
8385
ruby: [ '3.2', '3.3', '3.4', '4.0' ]
8486
runs-on: ${{ matrix.os }}
8587
steps:
88+
- name: Install XQuartz
89+
run: |
90+
brew install --cask xquartz
91+
open -a XQuartz
92+
8693
- name: Download packed binary
8794
uses: actions/download-artifact@v4
8895
with:

0 commit comments

Comments
 (0)