Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH Action failure on macOS only - X11 related? #78

Closed
ddsjoberg opened this issue Apr 9, 2020 · 3 comments
Closed

GH Action failure on macOS only - X11 related? #78

ddsjoberg opened this issue Apr 9, 2020 · 3 comments
Labels
bug

Comments

@ddsjoberg
Copy link

@ddsjoberg ddsjoberg commented Apr 9, 2020

Describe the bug
I have a build that is passing on all systems except macOS. The error occurs when trying to install the package gdtools (https://github.com/davidgohel/gdtools). The main page for the package lists additional software that needs to be available for this package, X11. The software requirement is additionally documented here: https://cran.r-project.org/bin/macosx/

To Reproduce
Here is a link to the most recent failed build log: https://github.com/ddsjoberg/gtsummary/pull/437/checks?check_run_id=574965508

Expected behavior
As this is only occurring on macOS with the package that needs X11, I assume this is the reason for the error.

Additional context
Apologies if this is not the correct space for reporting! Thank you!

@ddsjoberg ddsjoberg added the bug label Apr 9, 2020
@jimhester
Copy link
Member

@jimhester jimhester commented Apr 9, 2020

Generally you will need to install XQuartz in these cases, e.g. add the following to your workflow file.

      - name: Install XQuartz on macOS
        if: runner.os == 'macOS'
        run: brew cask install xquartz

@ddsjoberg
Copy link
Author

@ddsjoberg ddsjoberg commented Apr 9, 2020

Thank you @jimhester for your kind response! Adding that indeed solved the X11 error! Much appreciated! 🙌

@kabarigou
Copy link

@kabarigou kabarigou commented Mar 30, 2021

For information, brew cask install xquartz returns an error:

Error: Unknown command: cask

This should be replaced by brew install xquartz --cask. So, one needs:

      - name: Install XQuartz on macOS
        if: runner.os == 'macOS'
        run: brew install xquartz --cask

ngreifer added a commit to ngreifer/cobalt that referenced this issue Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug
Projects
None yet
Development

No branches or pull requests

3 participants