diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-05-27 11:58:17 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-05-27 10:07:22 +0000 |
commit | 974de93faa513bde8122299307c4ae9b4ca32fb0 (patch) | |
tree | 7c80aca1ddd420bcd6ed3badc6e9862a90aac35e | |
parent | f163b9bcd2c11c84e287fa7cc7d798453892a3d7 (diff) |
Change-Id: Ie01489c6835c377fe99692dd3aca3ad400c1e6f3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | .github/workflows/README.md | 41 | ||||
-rw-r--r-- | .github/workflows/build_qmake.yml | 4 |
2 files changed, 43 insertions, 2 deletions
diff --git a/.github/workflows/README.md b/.github/workflows/README.md new file mode 100644 index 0000000..8481ed1 --- /dev/null +++ b/.github/workflows/README.md @@ -0,0 +1,41 @@ +# GitHub Actions & Workflows + +The `build_qmake.yml` in this directory adds a [GitHub action][1] and workflow that builds +your plugin anytime you push commits to GitHub on Windows, Linux and macOS. + +The build artifacts can be downloaded from GitHub and be installed into an existing Qt Creator +installation. + +When you push a tag, the workflow also creates a new release on GitHub. + +## Keeping it up to date + +Near the top of the file you find a section starting with `env:`. + +The value for `QT_VERSION` specifies the Qt version to use for building the plugin. + +The value for `QT_CREATOR_VERSION` specifies the Qt Creator version to use for building the plugin. + +The value for `QT_CREATOR_SNAPSHOT` can either be `NO` or `latest` or the build ID of a specific +snapshot build for the Qt Creator version that you specified. + +You need to keep these values updated for different versions of your plugin, and take care +that the Qt version and Qt Creator version you specify are compatible. + +## What it does + +The build job consists of several steps: + +* Install required packages on the build host +* Download, unpack and install the binary for the Qt version +* Download and unpack the binary for the Qt Creator version +* Build the plugin and upload the plugin libraries to GitHub +* If a tag is pushed, create a release on GitHub for the tag, including zipped plugin libraries + for download + +## Limitations + +If your plugin requires additional resources besides the plugin library, you need to adapt the +script accordingly. + +[1]: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-github-actions diff --git a/.github/workflows/build_qmake.yml b/.github/workflows/build_qmake.yml index 5dc9b60..bdba205 100644 --- a/.github/workflows/build_qmake.yml +++ b/.github/workflows/build_qmake.yml @@ -4,8 +4,8 @@ on: [push] env: QT_VERSION: 5.14.1 - QT_CREATOR_VERSION: 4.12.0-beta1 - QT_CREATOR_SNAPSHOT: latest + QT_CREATOR_VERSION: 4.12.0 + QT_CREATOR_SNAPSHOT: NO PLUGIN_PRO: haskell.pro PLUGIN_NAME: Haskell |