for github actions added step to build macos and linux application
This commit is contained in:
parent
dfe927dcbd
commit
48734689d8
1 changed files with 81 additions and 87 deletions
168
.github/workflows/deploy.yml
vendored
168
.github/workflows/deploy.yml
vendored
|
|
@ -4,75 +4,58 @@ name: Deploy workflow
|
||||||
# or API.
|
# or API.
|
||||||
on: [push] #, pull_request]
|
on: [push] #, pull_request]
|
||||||
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# Build-Linux-Ubuntu:
|
Build-Linux-Ubuntu:
|
||||||
# name: Build-Linux-Ubuntu
|
name: Build-Linux-Ubuntu
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# env:
|
env:
|
||||||
# QT_VERSION: 5.15.2
|
QT_VERSION: 5.15.2
|
||||||
# QIF_VERSION: 4.4
|
QIF_VERSION: 4.5
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: Install Qt
|
- name: Install Qt
|
||||||
# uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
# with:
|
with:
|
||||||
# version: '5.15.2'
|
version: ${{ env.QT_VERSION }}
|
||||||
# host: 'linux'
|
host: 'linux'
|
||||||
# target: 'desktop'
|
target: 'desktop'
|
||||||
# arch: 'gcc_64'
|
arch: 'gcc_64'
|
||||||
# dir: '${{ github.workspace }}/Qt/'
|
dir: ${{ runner.temp }}
|
||||||
# install-deps: 'true'
|
setup-python: 'true'
|
||||||
# modules: 'qtcharts'
|
tools: 'tools_ifw'
|
||||||
# archives: 'qtbase qtsvg'
|
set-env: 'true'
|
||||||
# cache: 'true'
|
extra: '--external 7z'
|
||||||
# cache-key-prefix: 'install-qt-action-linux'
|
|
||||||
# setup-python: 'true'
|
|
||||||
# tools: 'tools_ifw tools_qtcreator,qt.tools.qtcreator'
|
|
||||||
# set-env: 'true'
|
|
||||||
# tools-only: 'false'
|
|
||||||
# aqtversion: '==2.1.*'
|
|
||||||
# py7zrversion: '==0.19.*'
|
|
||||||
# extra: '--external 7z'
|
|
||||||
|
|
||||||
# - uses: actions/checkout@v3
|
- name: 'Get sources'
|
||||||
# with:
|
uses: actions/checkout@v3
|
||||||
# fetch-depth: 10
|
with:
|
||||||
|
submodules: 'true'
|
||||||
# - uses: awalsh128/cache-apt-pkgs-action@latest
|
fetch-depth: 10
|
||||||
# with:
|
|
||||||
# packages: p7zip p7zip-full python3 python3-pip libgl-dev mesa-common-dev libpulse-dev libxcb-* libxkbcommon-x11-0
|
|
||||||
# version: 1.0
|
|
||||||
|
|
||||||
# - name: Install Qt
|
# - name: Cache Qt
|
||||||
# run: |
|
# uses: actions/cache@v3
|
||||||
# if [ ! -f $QT_BIN_DIR/qmake ]; then \
|
# id: cache-qt
|
||||||
# python3 -m pip install --user $(whoami) --upgrade pip && \
|
# with:
|
||||||
# export PATH=$HOME/.local/bin:$PATH && \
|
# key: qt-5.15.2-linux
|
||||||
# python3 -m pip install -U aqtinstall requests py7zr && \
|
# path: "$HOME/Qt"
|
||||||
# python3 -m pip show aqtinstall && \
|
|
||||||
# python3 -m aqt install-qt linux desktop $QT_VERSION gcc_64 -m all -O $HOME/Qt && \
|
|
||||||
# python3 -m aqt install-tool linux desktop tools_ifw -O $HOME/Qt ; \
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# - name: Cache Qt
|
- name: 'Setup ccache'
|
||||||
# uses: actions/cache@v3
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
# id: cache-qt
|
|
||||||
# with:
|
|
||||||
# key: qt-5.15.2-linux
|
|
||||||
# path: "$HOME/Qt"
|
|
||||||
|
|
||||||
# - name: Build project
|
- name: Build project
|
||||||
# run: bash deploy/build_linux.sh
|
run: |
|
||||||
|
export QT_BIN_DIR=${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin
|
||||||
|
export QIF_BIN_DIR=${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin
|
||||||
|
bash deploy/build_linux.sh
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
Build-Windows:
|
Build-Windows:
|
||||||
name: Build-Windows
|
name: Build-Windows
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
continue-on-error: true
|
# continue-on-error: true
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -103,6 +86,9 @@ jobs:
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
fetch-depth: 10
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- name: 'Setup ccache'
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
- name: 'Install Qt'
|
- name: 'Install Qt'
|
||||||
uses: jurplel/install-qt-action@v3
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -177,6 +163,9 @@ jobs:
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
fetch-depth: 10
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- name: 'Setup ccache'
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: |
|
run: |
|
||||||
export QT_BIN_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/ios/bin"
|
export QT_BIN_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/ios/bin"
|
||||||
|
|
@ -186,40 +175,45 @@ jobs:
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
# Build-MacOS:
|
Build-MacOS:
|
||||||
# name: Build-MacOS
|
name: Build-MacOS
|
||||||
# runs-on: ubuntu-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
# env:
|
env:
|
||||||
# QT_VERSION: 5.15.2
|
QT_VERSION: 5.15.2
|
||||||
# QIF_VERSION: 4.4
|
QIF_VERSION: 4.5
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: Install Qt
|
- name: Setup xcode
|
||||||
# uses: jurplel/install-qt-action@v3
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
# with:
|
with:
|
||||||
# version: '5.15.2'
|
xcode-version: '13.4'
|
||||||
# host: 'mac'
|
|
||||||
# target: 'desktop'
|
|
||||||
# arch: 'clang_64'
|
|
||||||
# dir: '${{ github.workspace }}/Qt/'
|
|
||||||
# install-deps: 'true'
|
|
||||||
# modules: 'qtcharts'
|
|
||||||
# archives: 'qtbase qtsvg'
|
|
||||||
# cache: 'true'
|
|
||||||
# cache-key-prefix: 'install-qt-action-mac'
|
|
||||||
# setup-python: 'true'
|
|
||||||
# tools: 'tools_ifw tools_qtcreator,qt.tools.qtcreator'
|
|
||||||
# set-env: 'true'
|
|
||||||
# tools-only: 'false'
|
|
||||||
# aqtversion: '==2.1.*'
|
|
||||||
# py7zrversion: '==0.19.*'
|
|
||||||
# extra: '--external 7z'
|
|
||||||
|
|
||||||
# - uses: actions/checkout@v3
|
- name: Install Qt
|
||||||
# with:
|
uses: jurplel/install-qt-action@v3
|
||||||
# fetch-depth: 10
|
with:
|
||||||
|
version: ${{ env.QT_VERSION }}
|
||||||
|
host: 'mac'
|
||||||
|
target: 'desktop'
|
||||||
|
arch: 'clang_64'
|
||||||
|
dir: ${{ runner.temp }}
|
||||||
|
setup-python: 'true'
|
||||||
|
tools: 'tools_ifw'
|
||||||
|
set-env: 'true'
|
||||||
|
extra: '--external 7z'
|
||||||
|
|
||||||
# - name: Build project
|
- name: 'Get sources'
|
||||||
# run: bash deploy/build_macos.sh
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- name: 'Setup ccache'
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
|
- name: Build project
|
||||||
|
run: |
|
||||||
|
export QT_BIN_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/clang_64/bin"
|
||||||
|
export QIF_BIN_DIR="${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin"
|
||||||
|
bash deploy/build_macos.sh
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue