Skip to content

Commit

Permalink
[fix] ci: fix homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Jul 9, 2023
1 parent ed287fe commit a83a4d7
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 25 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [master]

env:
QT_VERSION: 6.5.0
QT_VERSION: 6.5.1
OPENCV_VERSION: 4.7.0

jobs:
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
path: src/build/FastTrack

build_mac:
runs-on: macos-11
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -108,17 +108,24 @@ jobs:
pip install aqtinstall
python3 -m aqt install-qt -m qtcharts -O ${{ github.workspace }}/Qt/ mac desktop ${{ env.QT_VERSION }}
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/bin/ >> $GITHUB_PATH
- name: Set up Homebrew #https://github.com/Homebrew/homebrew-cask/issues/150323
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: install_opencv
run: |
rm -rf /usr/local/bin/2to3
brew update
brew upgrade
brew install libomp
rm -f /usr/local/bin/2to3*
rm -f /usr/local/bin/idle3*
rm -f /usr/local/bin/pydoc3*
rm -f /usr/local/bin/python3*
brew update -q -f
brew upgrade -q -f
brew install pkg-config
brew install opencv
brew install openssl
brew unlink unixodbc
brew install libiodbc
brew install suite-sparse
brew tap FastTrackOrg/fasttrack
brew install --build-from-source FastTrackOrg/fasttrack/opencv
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
- name: build_ft
run: |
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/build_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [master]

env:
QT_VERSION: 6.5.0
QT_VERSION: 6.5.1
OPENCV_VERSION: 4.7.0

jobs:
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
path: src/build_cli/

build_mac:
runs-on: macos-11
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -101,16 +101,24 @@ jobs:
pip install aqtinstall
python3 -m aqt install-qt -O ${{ github.workspace }}/Qt/ mac desktop ${{ env.QT_VERSION }}
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/bin/ >> $GITHUB_PATH
- name: Set up Homebrew #https://github.com/Homebrew/homebrew-cask/issues/150323
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: install_opencv
run: |
rm -rf /usr/local/bin/2to3
brew update
brew upgrade
rm -f /usr/local/bin/2to3*
rm -f /usr/local/bin/idle3*
rm -f /usr/local/bin/pydoc3*
rm -f /usr/local/bin/python3*
brew update -q -f
brew upgrade -q -f
brew install pkg-config
brew install opencv
brew install openssl
brew unlink unixodbc
brew install libiodbc
brew install suite-sparse
brew tap FastTrackOrg/fasttrack
brew install --build-from-source FastTrackOrg/fasttrack/opencv
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
- name: build_ftcli
run: |
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
./test.sh win
test_mac:
runs-on: macos-11
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -90,11 +90,17 @@ jobs:
pip install aqtinstall
python3 -m aqt install-qt -m qtcharts -O ${{ github.workspace }}/Qt/ mac desktop ${{ env.QT_VERSION }}
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/bin/ >> $GITHUB_PATH
- name: Set up Homebrew #https://github.com/Homebrew/homebrew-cask/issues/150323
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: install_deps
run: |
rm -rf /usr/local/bin/2to3
brew update
brew upgrade
rm -f /usr/local/bin/2to3*
rm -f /usr/local/bin/idle3*
rm -f /usr/local/bin/pydoc3*
rm -f /usr/local/bin/python3*
brew update -q -f
brew upgrade -q -f
brew install pkg-config
brew install libomp
brew install opencv
Expand Down
6 changes: 2 additions & 4 deletions src/FastTrack-Cli.pro
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ unix:!macx {

unix:macx {
TARGET = FastTrack-cli
CONFIG += c++17
QMAKE_CXXFLAGS += -std=c++1z -stdlib=libc++ -mmacosx-version-min=11.7 -O3 -Xpreprocessor
CONFIG += c++2a
QMAKE_CXXFLAGS += -std=c++1z -stdlib=libc++ -O3 -Xpreprocessor
QMAKE_CXXFLAGS_RELEASE -= -O1
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3

QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.15

QMAKE_LFLAGS_RELEASE -= -O1
QMAKE_LFLAGS_RELEASE -= -O2
QMAKE_LFLAGS_RELEASE += -O3
Expand Down
6 changes: 2 additions & 4 deletions src/FastTrack.pro
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ win32 {

unix:macx {
TARGET = FastTrack
CONFIG += c++17
QMAKE_CXXFLAGS += -std=c++1z -stdlib=libc++ -mmacosx-version-min=11.7 -O3 -Xpreprocessor
CONFIG += c++2a
QMAKE_CXXFLAGS += -std=c++1z -stdlib=libc++ -O3 -Xpreprocessor
QMAKE_CXXFLAGS_RELEASE -= -O1
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3

QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.15

QMAKE_LFLAGS_RELEASE -= -O1
QMAKE_LFLAGS_RELEASE -= -O2
QMAKE_LFLAGS_RELEASE += -O3
Expand Down

0 comments on commit a83a4d7

Please sign in to comment.