From bfb08a7e5d5fbffcef23000ae4f1131240cf1aeb Mon Sep 17 00:00:00 2001 From: Victor Tran Date: Sat, 13 Apr 2024 09:59:33 +1000 Subject: [PATCH] Maybe Windows CI --- .github/workflows/win.yml | 59 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/win.yml diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml new file mode 100644 index 0000000..c7f0a00 --- /dev/null +++ b/.github/workflows/win.yml @@ -0,0 +1,59 @@ +name: "macOS CI" +on: + push: + branches: + - '**' + release: + types: [published] + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + steps: + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + aqtversion: '==3.1.*' + version: '6.7.0' + host: 'mac' + target: 'desktop' + arch: 'clang_64' + cache: true + modules: 'qt3d qtcharts qtconnectivity qtdatavis3d qtgraphs qtgrpc qthttpserver qtimageformats qtlanguageserver qtlocation qtlottie qtmultimedia qtnetworkauth qtpdf qtpositioning qtquick3dphysics qtquickeffectmaker qtremoteobjects qtscxml qtsensors qtserialbus qtserialport qtspeech qtvirtualkeyboard qtwebchannel qtwebengine qtwebsockets qtwebview qt5compat qtquick3d qtquicktimeline qtshadertools' + - name: Install QCoro + uses: theCheeseboard/actions/build-cmake-project@actions + with: + project: danvratil/qcoro + commitish: v0.10.0 + - name: Install libcontemporary + uses: theCheeseboard/actions/build-cmake-project@actions + with: + project: theCheeseboard/libcontemporary + commitish: features/qml + - name: Install contemporary-qml + uses: theCheeseboard/actions/build-cmake-project@actions + with: + project: theCheeseboard/contemporary-qml + commitish: main + - name: Install theterminal + id: theterminal + uses: theCheeseboard/actions/build-cmake-project@actions + with: + project: . + commitish: . + - name: Deploy theterminal + env: + SOURCE_DIRECTORY: ${{ steps.theterminal.outputs.source-directory }} + BUILD_DIRECTORY: ${{ steps.theterminal.outputs.build-directory }} + INSTALL_DIRECTORY: ${{ steps.theterminal.outputs.install-directory }} + run: | + mkdir output + mv "$BUILD_DIRECTORY/application/"theTerminal*.exe output + windeployqt output/theTerminal*.exe --qmlimport="$INSTALL_DIRECTORY/qml" --qmldir="$SOURCE_DIRECTORY" --libdir="$INSTALL_DIRECTORY/bin" + - name: Upload theterminal artifact + uses: actions/upload-artifact@v4 + with: + name: theterminal-win + path: output