-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
463 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: 'Download Qt' | ||
description: 'Downloads Qt' | ||
inputs: | ||
version: | ||
description: 'Qt version' | ||
required: false | ||
default: '6.6.0' | ||
target: | ||
description: 'Qt target (desktop, ios, android)' | ||
required: false | ||
default: 'desktop' | ||
toolchain: | ||
description: 'Qt toolchain' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Qt | ||
run: | | ||
QT_DIR=$(./scripts/install-qt.sh -d $HOME/Qt --version ${{ inputs.version }} --target ${{ inputs.target }} --toolchain ${{ inputs.toolchain }} qtbase) | ||
(cygpath -w ${QTC_DIR} 2>/dev/null || echo ${QT_DIR}) >> ${GITHUB_PATH} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-macos: | ||
name: Build on macOS | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install Qt | ||
uses: ./.github/actions/download-qt | ||
with: | ||
toolchain: clang_64 | ||
- name: Install Qbs | ||
run: brew install qbs | ||
- name: Setup Qbs | ||
run: | | ||
qbs setup-toolchains --detect | ||
qbs setup-qt --detect | ||
qbs config profiles.qt.baseProfile xcode_13_2_1-macosx-x86_64 | ||
qbs config defaultProfile qt | ||
qbs config --list | ||
- name: Build | ||
run: | | ||
qbs resolve | ||
qbs build | ||
Oops, something went wrong.