|
14 | 14 | - uses: actions/setup-python@v2 |
15 | 15 | with: |
16 | 16 | python-version: '3.8' |
| 17 | + - name: Set up Homebrew #https://github.com/Homebrew/homebrew-cask/issues/150323 |
| 18 | + id: set-up-homebrew |
| 19 | + uses: Homebrew/actions/setup-homebrew@master |
17 | 20 | - name: install_qt |
18 | 21 | run: | |
19 | 22 | pip install aqtinstall |
|
22 | 25 | rm -r ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/plugins/sqldrivers/libqsqlmimer.* |
23 | 26 | rm -r ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/plugins/sqldrivers/libqsqlodbc.* |
24 | 27 | rm -r ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/plugins/sqldrivers/libqsqlpsql.* |
25 | | - - name: Set up Homebrew #https://github.com/Homebrew/homebrew-cask/issues/150323 |
26 | | - id: set-up-homebrew |
27 | | - uses: Homebrew/actions/setup-homebrew@master |
28 | 28 | - name: install_opencv |
29 | 29 | run: | |
30 | 30 | rm -f /usr/local/bin/2to3* |
|
40 | 40 | brew install openssl |
41 | 41 | brew install libiodbc |
42 | 42 | brew install opencv |
| 43 | + brew uninstall --force qt |
43 | 44 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ |
44 | 45 | - name: build_ft |
45 | 46 | run: | |
@@ -71,13 +72,29 @@ jobs: |
71 | 72 | find / -name "libgcc_s.1.1.dylib" -exec cp {} FastTrack-Cli.app/Contents/Frameworks/ \; 2> >(tee /dev/stderr) || true |
72 | 73 | find / -name "libsharpyuv.0.dylib" -exec cp {} FastTrack-Cli.app/Contents/Frameworks/ \; 2> >(tee /dev/stderr) || true |
73 | 74 | find / -name "libjxl_cms.0.11.dylib" -exec cp {} FastTrack-Cli.app/Contents/Frameworks/ \; 2> >(tee /dev/stderr) || true |
74 | | - cp -v /opt/homebrew/Cellar/opencv/*/lib/lib*.dylib FastTrack-Cli.app/Contents/Frameworks/ || true # Should (and was) be automatically done by macdeployqt! |
| 75 | + cp -v /opt/homebrew/opt/opencv/*/lib/lib*.dylib FastTrack-Cli.app/Contents/Frameworks/ || true # Should (and was) be automatically done by macdeployqt! |
75 | 76 | cp -v /opt/homebrew/opt/little-cms2/lib/lib*.dylib FastTrack-Cli.app/Contents/Frameworks/ || true # Should (and was) be automatically done by macdeployqt! |
76 | 77 | cp -v /opt/homebrew/opt/jpeg-xl/lib/lib*.dylib FastTrack-Cli.app/Contents/Frameworks/ || true # Should (and was) be automatically done by macdeployqt! |
77 | | - python macdeployqtfix.py fasttrack-cli.app/contents/macos/fasttrack-cli ../../Qt/${{ env.QT_VERSION }}/ |
| 78 | + python macdeployqtfix.py FastTrack-Cli.app/Contents/MacOS/FastTrack-Cli ../../Qt/${{ env.QT_VERSION }}/ |
78 | 79 | hdiutil create -volname FastTrack-Cli -srcfolder FastTrack-Cli.app -ov -format UDZO FastTrack-Cli.dmg |
79 | 80 | - name: upload_artefact |
80 | 81 | uses: actions/upload-artifact@v4 |
81 | 82 | with: |
82 | 83 | name: FastTrack-Cli.dmg |
83 | 84 | path: ./build/bin/FastTrack-Cli.dmg |
| 85 | + |
| 86 | + test_bundle: |
| 87 | + runs-on: macos-latest |
| 88 | + needs: build_mac |
| 89 | + steps: |
| 90 | + - name: download artifact |
| 91 | + uses: actions/download-artifact@v4 |
| 92 | + with: |
| 93 | + name: FastTrack-Cli.dmg |
| 94 | + path: FastTrack-Cli |
| 95 | + |
| 96 | + - name: Run FastTrack executable |
| 97 | + run: | |
| 98 | + cd FastTrack-Cli |
| 99 | + hdiutil attach FastTrack-Cli.dmg -mountpoint /Volumes/FastTrackApp |
| 100 | + /Volumes/FastTrackApp/FastTrack-Cli.app/Contents/MacOS/FastTrack-Cli --help |
0 commit comments