Skip to content

Commit

Permalink
tentative fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wismill committed Mar 14, 2024
1 parent b0da791 commit ab084f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,17 @@ jobs:
python-version: '3.12'
- name: Install dependencies
run: |
brew install bison libxml2 meson ninja pyyaml
brew link bison --force
brew install bison libxml2 meson ninja pyyaml xkeyboardconfig
brew install xquartz --cask
brew link bison --force
echo $HOMEBREW_PREFIX
brew --prefix xkeyboardconfig
brew --prefix xquartz
ls -l "$(brew --prefix xkeyboardconfig)"
ls -l "$(brew --prefix xquartz)"
echo $PATH
which echo
which Xvfb
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
Expand All @@ -35,8 +43,8 @@ jobs:
meson setup \
-Denable-wayland=false \
-Denable-x11=true \
-Dxkb-config-root=#{HOMEBREW_PREFIX}/share/X11/xkb \
-Dx-locale-root=#{HOMEBREW_PREFIX}/share/X11/locale \
-Dxkb-config-root=${HOMEBREW_PREFIX}/share/X11/xkb \
-Dx-locale-root=${HOMEBREW_PREFIX}/share/X11/locale \
build
- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion test/xvfb-wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ xvfb_wrapper(int (*test_func)(char* display))
rewind(display_fd);
length = fread(&display[1], 1, sizeof(display) - 1, display_fd);
if (length <= 0) {
ret = TEST_SETUP_FAILURE;
fprintf(stderr, "fread error: length=%zu\n", length);
ret = TEST_SETUP_FAILURE;
goto err_xvfd;
} else {
/* Drop the newline character */
Expand Down

0 comments on commit ab084f8

Please sign in to comment.