Skip to content

Commit

Permalink
add macos CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ABBAPOH committed Jul 12, 2024
1 parent 178996e commit e2a648a
Show file tree
Hide file tree
Showing 3 changed files with 463 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/actions/download-qt/action.yml
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
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
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
Loading

0 comments on commit e2a648a

Please sign in to comment.