Fixed homebrew paths

This commit is contained in:
Martin Tůma 2024-06-14 19:59:43 +02:00
parent 7488fc8f98
commit aeed3e3848

View File

@ -11,38 +11,31 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- name: Set environment variables - name: Set environment variables
run: echo "PATH=/usr/local/opt/qt@5/bin:/usr/local/opt/protobuf@21/bin:$PATH" >> $GITHUB_ENV run: echo "PATH=/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/protobuf@21/bin:$PATH" >> $GITHUB_ENV
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: | run: |
brew update brew update
brew install qt@5 protobuf@21 brew install qt@5 protobuf@21
brew link --force protobuf@21
brew link --force qt@5
- name: Configure build - name: Configure build
run: qmake PROTOBUF=/usr/local/opt/protobuf@21 pbfplugin.pro run: qmake PROTOBUF=/opt/homebrew/opt/protobuf@21 pbfplugin.pro
- name: Build project - name: Build project
run: | run: make -j3
which protobuf
make -j3
qt6: qt6:
name: QtPBFImagePlugin Qt6 build name: QtPBFImagePlugin Qt6 build
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- name: Set environment variables - name: Set environment variables
run: echo "PATH=/usr/local/opt/qt@6/bin:/usr/local/opt/protobuf@21/bin:$PATH" >> $GITHUB_ENV run: echo "PATH=/opt/homebrew/opt/qt@6/bin:/opt/homebrew/opt/protobuf@21/bin:$PATH" >> $GITHUB_ENV
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install dependencies - name: Install dependencies
run: | run: |
brew update brew update
brew install qt@6 protobuf@21 brew install qt@6 protobuf@21
brew link --force protobuf@21
- name: Configure build - name: Configure build
run: qmake PROTOBUF=/usr/local/opt/protobuf@21 pbfplugin.pro run: qmake PROTOBUF=/opt/homebrew/opt/protobuf@21 pbfplugin.pro
- name: Build project - name: Build project
run: | run: make -j3
which protobuf
make -j3