Skip to content

Commit

Permalink
workflow(macos): fix brew link [email protected] issue (#85)
Browse files Browse the repository at this point in the history
* workflow(macos): fix pipeline issue

Signed-off-by: Rui Chen <[email protected]>

* workflow(macos): remove `/usr/local/bin/2to3-3.12` instead

Signed-off-by: Rui Chen <[email protected]>

* workflow(macos): update workflow (merge brew step and fix `brew link` errors)

Signed-off-by: Rui Chen <[email protected]>

---------

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 authored Feb 15, 2024
1 parent 30f3a07 commit 94b478b
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,26 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: brew update
- run: brew install webp gdk-pixbuf meson ninja pkg-config

- name: Install dependencies via Homebrew
run: |
brew update
# fix `brew link [email protected]` issue
rm -f /usr/local/bin/2to3
rm -f /usr/local/bin/idle3
rm -f /usr/local/bin/pydoc3
rm -f /usr/local/bin/python3
rm -f /usr/local/bin/python3-config
rm -f /usr/local/bin/2to3-3.12
rm -f /usr/local/bin/idle3.12
rm -f /usr/local/bin/pydoc3.12
rm -f /usr/local/bin/python3.12
rm -f /usr/local/bin/python3.12-config
brew install webp gdk-pixbuf meson ninja pkg-config
- run: meson setup build
- run: meson compile -C build --verbose
- run: meson test -C build --print-errorlogs

0 comments on commit 94b478b

Please sign in to comment.