From 0b812a6d4c2a551237edcbd7b462cf2bd1ccad2e Mon Sep 17 00:00:00 2001 From: "Chance.H" Date: Thu, 12 Sep 2024 09:42:48 +0800 Subject: [PATCH] ci: fix macos build error --- .github/workflows/workflow.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 300c329..c9630fc 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -113,14 +113,14 @@ jobs: - name: Install dependencies run: | - brew install doxygen graphviz llvm cppcheck lcov spdlog boost freeglut glfw glew vtk cgal glm ffmpeg Xvfb + brew install doxygen graphviz llvm cppcheck lcov spdlog boost freeglut glfw glew vtk cgal glm ffmpeg ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format" ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy" brew install --cask xquartz - name: Start Xvfb run: | - sudo Xvfb :99 -screen 0 800x600x24 & + sudo /opt/X11/bin/Xvfb :99 -screen 0 800x600x24 & echo "DISPLAY=:99" >> $GITHUB_ENV export DISPLAY=:99 sleep 3 # Give Xvfb some time to start