Skip to content

Commit

Permalink
ci: fix tests on macos with arm64 (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven authored Jun 30, 2024
1 parent a9b0aad commit 2d426a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ jobs:
run: |
brew install mpv
- name: Setup DYLD path for macos-arm64
if: matrix.os == 'macos-latest'
run: |
# Python can't find libmpv on macOS arm64 by default.
# This problem does not exist on macOS with x86_64.
echo "DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib" >> $GITHUB_ENV
echo "DYLD_FALLBACK_FRAMEWORK_PATH=/opt/homebrew/Frameworks" >> $GITHUB_ENV
- name: Install Windows Dependencies
if: startsWith(matrix.os, 'windows')
run: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
- name: Install libmpv
run: |
brew install mpv
- name: Setup DYLD path for macos-arm64
if: matrix.os == 'macos-latest'
run: |
# Python can't find libmpv on macOS arm64 by default.
# This problem does not exist on macOS with x86_64.
echo "DYLD_FALLBACK_LIBRARY_PATH=/opt/homebrew/lib" >> $GITHUB_ENV
echo "DYLD_FALLBACK_FRAMEWORK_PATH=/opt/homebrew/Frameworks" >> $GITHUB_ENV
- name: Test if no syntax error
run: feeluown -h
- name: Bundle
Expand Down

0 comments on commit 2d426a9

Please sign in to comment.