Skip to content

Commit

Permalink
ci: fix macos build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance.H committed Sep 12, 2024
1 parent 6f091c3 commit b063797
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Upload GIFs
uses: actions/upload-artifact@v4
with:
name: gifs
name: gifs_ubuntu
path: build/bin/*.gif

- name: Upload coverage reports to Codecov
Expand Down Expand Up @@ -127,6 +127,17 @@ jobs:
echo "DISPLAY=:99" >> $GITHUB_ENV
sleep 3 # Give Xvfb some time to start
- name: Verify Xvfb
run: |
if ! pgrep Xvfb; then
echo "Xvfb did not start correctly"
exit 1
fi
if [ -z "$DISPLAY" ]; then
echo "DISPLAY environment variable is not set"
exit 1
fi
- name: Build
run: |
cmake --preset=build
Expand Down Expand Up @@ -168,7 +179,7 @@ jobs:
- name: Upload GIFs
uses: actions/upload-artifact@v4
with:
name: gifs
name: gifs_macos
path: build/bin/*.gif

- name: Upload coverage reports to Codecov
Expand Down

0 comments on commit b063797

Please sign in to comment.