Commit Graph

44 Commits

Author SHA1 Message Date
Cristian Adam
4c2e7f4adc GitHub Actions: Update Clang to version 12.0
Change-Id: I6204f4a2a5142fff9e498dbb9fba5531f152fbc4
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-05-03 12:51:50 +00:00
Cristian Adam
8d54fb22bc GitHub Actions: Update ccache to version 4.2.1
Also display the ccache statistics as separate step and not
at the end of the build step.

ccache clear

Change-Id: Ia8b2ae4b73f2070ab6cf14ab704e5fc4200d49de
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2021-03-30 17:32:02 +00:00
Eike Ziller
9ab6992922 GitHub: Recursively checkout submodules
This will become necessary when qlitehtml is a submodule with litehtml
as a sub-submodule.

Change-Id: I8a2ca47d24bc4b4f3ff88908a49d3f1933ec59ea
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-02-12 13:31:04 +00:00
Cristian Adam
59eff8c813 GitHub Actions: Use default timeout for download
Change-Id: I5d089410fba432e6df78d31e3920b581c6682f97
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-26 09:35:25 +00:00
Cristian Adam
fae659b389 GitHub Actions: Update Qt version to 5.15.2
Change-Id: I7b841da3e0e0c820807167c5a2de57a969f11db6
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-25 15:05:48 +00:00
Cristian Adam
a819903d9d GitHub Actions: Add support for download.qt.io mirroring
Change-Id: Ia64e40e69bb2e897c0098002122d3bcb7476cb7e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-01-20 14:47:47 +00:00
Ivan Komissarov
962918629b qbs: fix installing doc dependenices on macOS and Windows
python still aliases to python 2.7 on macOS, so we need a smarter way to
find python3.

Change-Id: I229d8c1e124fb599119991b44c0f6d88d39b1684
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-14 09:42:40 +00:00
Ivan Komissarov
d07ce92d0d qbs: Fix installing docs
Change-Id: I4f58d639bced972243faf4161697ec4e0a4b0d56
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-12-10 13:34:30 +00:00
Eike Ziller
093d5f5ab1 Build in release mode on GitHub
Add option to build scripts to override build type, so it can be
freely chosen.
Build in release mode on GitHub - RelWithDebInfo was too big.

Amends b1640074e3

Change-Id: Ibba6e60d4e9b2eee24e789bfd28bddffb1e782f6
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2020-11-12 16:22:19 +00:00
Cristian Adam
6c841dfbd0 GitHub Actions: Update to use Clang 11.0.0
Change-Id: I015a71a4f53ff3be8609a00bdef47c93161af882
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-10-26 12:47:46 +00:00
Cristian Adam
ee735e308e GitHub Actions: Set timeout for running tests
Timeout of 5s for tests that do not have the TIMEOUT property,
and 600s for the whole teset suite.

Change-Id: Ie58f1ec2f657448a963bf51d6e93cad142603120
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-10-21 20:51:28 +00:00
Eike Ziller
75adba735b CMake build: Build Qbs if the submodule is available
Includes update of Qbs to current head of master, which enables this
feature on the Qbs build system side.

Fixes: QTCREATORBUG-23905
Change-Id: I9a537b640b7f7a753839ace3e44d174c8e0af526
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
2020-10-09 14:27:54 +00:00
Cristian Adam
7ffbfa817e GitHub Actions: Make use of GitHub Environment Variables
See https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Change-Id: I520da0751fbf4a6b0db7df68696ed72190093803
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-10-07 08:03:06 +00:00
Cristian Adam
1e8f19e274 GitHub Actions: Add ability to clear ccache
By specifying "ccache: clear" or "ccache: clean" in the commit message,
the workflow will issue a ccache --clear command before building.

Change-Id: I9e45ebcd8dc4b05cef9d6d7ea70bef67602d1223
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-09-27 20:05:07 +00:00
Cristian Adam
828266d8a1 GitHub Actions: Mark compiler errors, and test failures as annotations
The annotations are visible for everybody, and very convenient for looking
after errors / test failures.

Change-Id: Idb7d1e63b3611063268b4e6e490195ccb9d2b221
Reviewed-by: hjk <hjk@qt.io>
2020-09-25 12:42:59 +00:00
Cristian Adam
8d760eff8f GitHub Actions: Update Qt, CMake, Ninja versions
Also double ccache size.

Change-Id: I53f9eb5bfed8d3788e813ac194bffadf1f3fa19a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-09-11 15:24:11 +00:00
Cristian Adam
d6c3846ab1 CMake Build: Add Google Testing 1.10.x as submodule
Fixes: QTCREATORBUG-24510
Change-Id: I763d72524f2e581671e18bcd9cda42d5bf7bccdf
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-08-19 15:50:37 +00:00
Eike Ziller
24e7d042ba Github: Set macOS deployment target to 10.13
Change-Id: I4b8b29a083b3b0884326c8a96aad9d80f2eebf16
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-07-17 06:31:11 +00:00
Eike Ziller
ea08857a8b Github: Build perfparser
Change-Id: I5b6213be303ac3ce70c53d95a04a13bf59ed5368
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-07-02 15:32:12 +00:00
Eike Ziller
bc4c2f8a15 Use the packaging script for the github action
Unifies a bit of what is done. For example this adds documentation and creates a disk image for
macOS. It will also make adding perfparser/elfutils and 32bit wininterrupt and qtcreatorcdbext
easier.

Adds Qt translations.
Adds some useful options to build.py and make it work with python3
Disables detection of debug vs release build in deployqt.py on Windows
if dumpbin is not there (for MinGW).

Change-Id: I3cc33144cad653823321209c219d220eb75093ec
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-06-25 16:37:28 +00:00
Cristian Adam
e98dfe4d14 GitHub Actions: Update libclang to 10.0.0
Change-Id: I40850933a040084b15ec9861b928a473c878a050
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-15 11:34:51 +00:00
Cristian Adam
07d825bd4c GitHub Actions: Update Qt version to 5.15.0
Change-Id: I6da4c9a2b0d0b86729c19e8db3ac345d2d45666c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-28 14:31:31 +00:00
Cristian Adam
12272a392d GitHub Actions: Update Qt, CMake, Ninja versions
Change-Id: If38ad9d521fd25429a2e923219f978ddb40b9117
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-04-08 21:17:12 +00:00
Eike Ziller
9eceb46739 Fix link on commit sha in about dialog
Passing a URL via defines breaks when trying to "stringify" it.
It would always stop at the first slash.
Instead use a qmake variable directly. That has the additional advantage that
the value isn't passed on each and every compiler command line.

Change-Id: I97a297fbcdee5ea03eb6fa08181c95b1ad2de767
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-03-23 07:14:27 +00:00
Cristian Adam
63b0c79a46 GitHub Actions: Add OpenSSL to resulted test artifacts
Change-Id: Ieec647abc87f87de79ef07c12378a2a32e783d8e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-02-21 16:08:42 +00:00
Cristian Adam
ea7d59e58a GitHub Actions: Display tests pass rate as warning annotation
Change-Id: I7d9970067b786f34fc29c82f85c5fc31f6d02704
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-02-21 10:42:46 +00:00
Cristian Adam
eed49de35b CMake Build: Use install component Dependencies
Fixes: QTCREATORBUG-23593
Change-Id: If9861a0ee09f2ce12ac093c2fde600a77958723a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-02-12 09:30:05 +00:00
Alessandro Portale
1a0af1ca22 CMake Build: Let the version dialog log link point to the repo of origin
https://github.com/<qtcreator-fork>/commits/<sha>

Instead of expecting a "%1" placeholder in the passed-in
IDE_REVISION_URL_STR, we now expect IDE_REVISION_URL_STR to be a plain
URL.

Reason is that passing a string containing "%1" from CMake to the
VersionDialog caused a premature replacement of that placeholder
somewhere on the way.

Also log the CMake configure call in build_cmake.yml

Change-Id: I4c1a946c66f891101576e3556ca87a004cead950
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-02-10 12:09:18 +00:00
Cristian Adam
8d767a3a21 CMake Deployment: Remove Dependencies component
- Install will also copy the dependencies.
- Made the dependencies search recursive, not just two steps
- Moved install code to a script, not having to escape quotes and dollars

Change-Id: I6c5fb19e4094e9dcd4b339d5b90be6e7c5055223
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-02-06 18:03:33 +00:00
Cristian Adam
820fa993a6 GitHub Workflow: Use github.run_id instead of github.sha
github.sha is the full sha, which is a bit too long.

Change-Id: I36982fc6705adf56358166445c8601e9aac85b6d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-31 10:58:55 +00:00
Alessandro Portale
62e2f81caa CMake Build: Add more Qt and Qml components
Runtime dependencies for Qt Quick Designer

Change-Id: I10f652fee464d196cae180e0a322e4f4a96e03ff
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-01-31 10:51:19 +00:00
Cristian Adam
f32605fa4a GitHub Actions: Use better naming for build artifacts
The format is now QtCreator-${{ matrix.config.artifact }}-${{ github.sha }}.7z

Change-Id: Ic74526caa767e1143f8c2533674899f6094287d7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-30 20:37:22 +00:00
Cristian Adam
b3caf501ce CMake Build: Add Dependencies install target
Change-Id: I17f8d26500a9a75bef64e23c3b64492c1bb929cc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-30 18:03:28 +00:00
Cristian Adam
b11445429e GitHub Workflow: Update Qt to 5.14.1
Change-Id: I8bc4ae712bdd886d4fa76fe26ba4152c87580cf0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-27 16:49:19 +00:00
Alessandro Portale
004614f6db GitHub action: Set the current sha as IDE_REVISION_STR
Change-Id: Ib18148c76cf504da8b70541fb472088b3b4f779c
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-01-26 15:09:26 +00:00
Cristian Adam
ad4040972b GitHub Workflow: run apt update before installing dependencies
Change-Id: I5b9f7d980490209e43994af09c9e3266f13103bd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-20 15:52:01 +00:00
Cristian Adam
371814f35c GitHub Workflow: package Devel component
This will allow 3rd parties to build plugins against this build
of Qt Creator.

Change-Id: I2ed7c3e4e3769e9b22a71a73d8355f1af48acf3e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-01-15 17:55:51 +00:00
Cristian Adam
f407193dba GitHub Workflow: Checkout litehtml submodule
The other two submodules are not hosted on github.

Change-Id: Iaefd189d5b47cda4f745361b9d0ad8fb16f06dcb
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-15 13:38:28 +00:00
Alessandro Portale
a4c58a167b GitHub workflow: Add a couple of Qt modules to "Download Qt"
qtserialport, qtquicktimeline, qtquick3d, qtscript

Change-Id: I8cba1d0f48dfa79e340c9f30de5bc996ffd02224
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2020-01-15 11:36:27 +00:00
Cristian Adam
c3e4b6c728 CMake Build: Enable tests on GitHub actions builds
They take 1 to 2 minutes of execution.
The success rate is from 97 to 99%, so I haven't made the tests step
blocking.

Change-Id: I39925cf6703904e15ba1c0c313aaf1daca382424
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-14 11:20:26 +00:00
Cristian Adam
77e21cd5b6 CMake Build: Enable ccache for Visual C++ for GitHub Actions
Change-Id: I75aa3ada96ab575a3a2db0afc6788267aedfa6d6
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-13 10:30:32 +00:00
Cristian Adam
4fa9842c82 CMake Build: Update GitHub Actions yml file to use ccache
After the cache is populated Linux and macOS build in ~7 minutes,
MinGW in ~16 minutes.

MSVC is the one which builds all the time (for now), which
builds in ~38minutes.

Change-Id: I4b35127a3ca6095b832722da1f43cfafa673ea3e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-10 18:42:30 +00:00
Cristian Adam
6a54209762 CMake Build: Enable PCH build for GCC on GitHub Actions
Run configure twice, instead of disabling PCH!

Change-Id: I43d4e3123962a5a2eb1c539319eb5c36b3e18698
Reviewed-by: hjk <hjk@qt.io>
2019-12-20 16:11:33 +00:00
Cristian Adam
00fb2421e7 CMake Build: Add GitHub Actions build file
This will use GitHub Actions CI infrastructure to do a CMake
build for Windows, Linux, and macOS.

Change-Id: If2cfae935c5392b4a9f85ac3026d577217d91162
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-12-20 14:42:24 +00:00