Skip to content

Commit

Permalink
Update build_qt.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Cédrik Fuoco <[email protected]>
  • Loading branch information
cedrik-fuoco-adsk authored Sep 6, 2024
1 parent 0a4a5f5 commit 3842756
Showing 1 changed file with 43 additions and 14 deletions.
57 changes: 43 additions & 14 deletions .github/workflows/build_qt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ jobs:
exit 1
}
# - name: Display Opt Directories
# run: cat opt_dirs.txt

# Use Ninja 1.11.1 because Qt need to be patched for Ninja 1.12.1.
- name: Install Ninja 1.11.1
run: |
Expand Down Expand Up @@ -98,29 +94,62 @@ jobs:
- name: Download Qt ${{ matrix.qt-version }} source
run: |
git clone git://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.15
./init-repository
curl https://www.nic.funet.fi/pub/mirrors/download.qt-project.org/official_releases/qt/5.15/5.15.15/single/qt-everywhere-opensource-src-5.15.15.tar.xz -o qt.tar.xz
tar xf qt.tar.xz
mv qt-everywhere-src-5.15.15 qt-src
- name: Create directory for build
run: |
mkdir -p qt-build
mkdir -p qt-release
- name: Configure Qt ${{ matrix.qt-version }}
run: |
../qt5/configure -release -prefix ./release -nomake examples -nomake tests QMAKE_APPLE_DEVICE_ARCHS=arm64 \
-opensource -confirm-license -c++std c++17 -openssl-linked -opengl desktop -release -skip qtlocation \
-I /opt/homebrew/Cellar/[email protected]/1.1.1w/include -L //opt/homebrew/Cellar/[email protected]/1.1.1w/lib
env:
OPENSSL_LIBS: '-L/opt/homebrew/Cellar/[email protected]/1.1.1w/lib -lssl -lcrypto'
../qt-src/configure \
--prefix="../qt-release" \
-no-strip \
-no-rpath \
-opensource \
-plugin-sql-sqlite \
-openssl \
-verbose \
-opengl desktop \
-no-warnings-are-errors \
-no-libudev \
-no-egl \
-nomake examples \
-nomake tests \
-c++std c++14\
-confirm-license \
-no-use-gold-linker \
-release \
-no-sql-mysql \
-no-xcb \
-qt-libjpeg \
-qt-libpng \
-bundled-xcb-xinput \
-sysconfdir /etc/xdg \
-qt-pcre \
-qt-harfbuzz \
-R . \
-icu \
-skip qtnetworkauth \
-skip qtpurchasing \
-skip qtlocation \
-I /opt/homebrew/Cellar/[email protected]/1.1.1w/include -L /opt/homebrew/Cellar/[email protected]/1.1.1w/lib \
-I /opt/homebrew/Cellar/icu4c/74.2/include -L /opt/homebrew/Cellar/icu4c/74.2/lib
working-directory: ${{ github.workspace }}/qt-build

- name: Build Qt
- name: Build Qt ${{ matrix.qt-version }}
run: |
make -j$(python -c 'import os; print(os.cpu_count())')
working-directory: ${{ github.workspace }}/qt-build

- name: Install Qt ${{ matrix.qt-version }}
run: |
make install -j$(python -c 'import os; print(os.cpu_count())')
working-directory: ${{ github.workspace }}/qt-build

- name: Display release folder
run: |
ls -al ./release
Expand Down

0 comments on commit 3842756

Please sign in to comment.