Update IRoboDK interface #66
Workflow file for this run
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
name: Build plugins | |
on: | |
#push: | |
# branches: [master] | |
# paths-ignore: | |
# - "**.md" | |
# - "**/PluginAppLoader/Apps/**" | |
# - "**/robodk_interface/**" | |
pull_request: | |
branches: [master] | |
paths-ignore: | |
- "**.md" | |
- "**/PluginAppLoader/Apps/**" | |
- "**/robodk_interface/**" | |
workflow_dispatch: # Run workflow manually | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- os: windows-2019 | |
OUTPUT_DIR: C:/RoboDK/bin/plugins | |
QT_VERSION: "5.15.2" | |
- os: ubuntu-20.04 | |
OUTPUT_DIR: ~/RoboDK/bin/plugins | |
QT_VERSION: "5.15.2" | |
- os: macos-11 | |
OUTPUT_DIR: ~/RoboDK-Dev/Deploy/RoboDK.app/Contents/MacOS/plugins | |
QT_VERSION: "5.15.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
tools: "tools_qtcreator,qt.tools.qtcreator" | |
version: ${{ matrix.QT_VERSION }} | |
target: "desktop" | |
cache: "true" | |
cache-key-prefix: "install-qt-action-${{ matrix.os }}" | |
- name: Configure and build Plug-In-Interface on Windows | |
if: startsWith(matrix.os, 'windows') | |
run: | | |
cd ${{ github.workspace }} | |
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 | |
qmake Plug-In-Interface.pro -spec win32-msvc CONFIG+=qtquickcompiler CONFIG+=${{ env.BUILD_TYPE }} | |
call %IQTA_TOOLS%\QtCreator\bin\jom\jom.exe | |
shell: cmd | |
- name: Configure and build Plug-In-Interface on Unix | |
if: (!startsWith(matrix.os, 'windows')) | |
run: | | |
cd ${{ github.workspace }} | |
qmake Plug-In-Interface.pro CONFIG+=qtquickcompiler CONFIG+=${{ env.BUILD_TYPE }} | |
make | |
shell: bash | |
- name: Upload runtime artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Plug-In-Interface-Runtime-${{ matrix.os }}-${{ env.BUILD_TYPE }} | |
if-no-files-found: error | |
path: | | |
${{ matrix.OUTPUT_DIR }}/*.dll | |
${{ matrix.OUTPUT_DIR }}/*.so | |
${{ matrix.OUTPUT_DIR }}/*.dylib | |
- name: Upload buildtime artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Plug-In-Interface-Buildtime-${{ matrix.os }}-${{ env.BUILD_TYPE }} | |
if-no-files-found: warn | |
path: | | |
${{ matrix.OUTPUT_DIR }}/*.exp | |
${{ matrix.OUTPUT_DIR }}/*.lib |