Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jurplel committed Mar 4, 2020
2 parents 0eed6b5 + c29b98b commit af5d4d7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install Qt
uses: ./
with:
modules: qtcharts qtwebengine
modules: 'qtcharts qtwebengine'

- name: Configure test project on windows
if: startsWith(matrix.os, 'windows')
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ Possible values: `qtcharts`, `qtdatavis3d`, `qtpurchasing`, `qtvirtualkeyboard`,

Default: none

### `mirror`
Forces a different Qt mirror in case there is a problem with the default.

If you have problems, you can try: `http://mirrors.ocf.berkeley.edu/qt/`

Default: none

### `cached`
If it is set to `true`, then Qt won't be downloaded, but the environment variables will be set, and essential build tools will be installed.

Expand All @@ -96,7 +103,7 @@ Default: `false`

Version of [aqtinstall](https://github.com/miurahr/aqtinstall) to use, given in the format used by pip, for example: `==0.7.1`, `>=0.7.1`, `==0.7.*`. This is intended to be used to troubleshoot any bugs that might be caused or fixed by certain versions of aqtinstall.

Default: `==0.8a1`
Default: `==0.8a2`

### `py7zrversion`
Version of py7zr in the same style as the aqtversion and intended to be used for the same purpose.
Expand All @@ -116,6 +123,7 @@ Default: `==0.6b6`
dir: '/example/'
install-deps: 'true'
modules: 'qtcharts qtwebengine'
mirror: 'http://mirrors.ocf.berkeley.edu/qt/'
cached: 'false'
aqtversion: '==0.8a1'
py7zrversion: '==0.6b6'
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ inputs:
default: 'true'
modules:
description: 'Additional Qt modules to install'
mirror:
description: 'Force a Qt mirror in case the default is not working'
cached:
description: "Whether or not to actually download Qt"
default: 'false'
Expand Down
9 changes: 7 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ async function run() {
let target = core.getInput("target");
let arch = core.getInput("arch");
let modules = core.getInput("modules").split(" ");
let mirror = core.getInput("mirror");

//set host automatically if omitted
if (!host) {
Expand Down Expand Up @@ -63,10 +64,14 @@ async function run() {
}
if (modules) {
args.push("-m");
modules.forEach(function(currentValue) {
args.push(currentValue);
modules.forEach(function(currentModule) {
args.push(currentModule);
});
}
if (mirror) {
args.push("-b");
args.push(mirror);
}

//accomodate for differences in python 3 executable name
let pythonName = "python3";
Expand Down

0 comments on commit af5d4d7

Please sign in to comment.