Skip to content

Commit

Permalink
Add builds with shared qt
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba160 committed May 2, 2021
1 parent 4347941 commit 8094a34
Showing 1 changed file with 46 additions and 5 deletions.
51 changes: 46 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ddb_gui_qt5
on: [ push, pull_request ]

jobs:
build_linux:
build_linux_static:
name: Static linux
runs-on: ubuntu-latest
container: ubuntu:18.04
Expand All @@ -24,8 +24,27 @@ jobs:
with:
name: linux
path: ddb_gui_qt5_linux-static.zip
build_windows:
name: CI for Windows
build_linux_shared:
name: Shared linux
runs-on: ubuntu-latest
container: ubuntu:18.04
steps:
- name: Install dependencies for Linux
run: |
apt-get -qq update
apt-get install -y -qq qtbase5-dev libqt5svg5-dev make \
g++ wget zip unzip
- name: Checkout for Linux
uses: actions/checkout@v1
- name: Build for Linux
run: qmake -qt=qt5; make; mkdir -p plugins; cp ddb_gui_qt5.so plugins/; zip -r ddb_gui_qt5_linux-shared.zip plugins/ddb_gui_qt5.so
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: linux
path: ddb_gui_qt5_linux-shared.zip
build_windows_static:
name: Static Windows
runs-on: windows-latest
steps:
- name: Checkout for Windows
Expand All @@ -40,9 +59,31 @@ jobs:
mingw-w64-x86_64-toolchain make tar unzip xz zip mingw-w64-x86_64-qt5-static
- name: Build for Windows
shell: msys2 {0}
run: /mingw64/qt5-static/bin/qmake ; make ; mkdir -p plugins; mv release/*.dll plugins/ ; zip -r ddb_gui_qt5_windows_static.zip plugins/*.dll
run: /mingw64/qt5-static/bin/qmake ; make ; mkdir -p plugins; mv release/*.dll plugins/ ; zip -r ddb_gui_qt5_windows-static.zip plugins/*.dll
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: windows
path: ddb_gui_qt5_windows-static.zip
build_windows_shared:
name: Shared Windows
runs-on: windows-latest
steps:
- name: Checkout for Windows
uses: actions/checkout@v2
with:
submodules: true
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-toolchain make tar unzip xz zip mingw-w64-x86_64-qt5
- name: Build for Windows
shell: msys2 {0}
run: qmake; make; mkdir -p plugins;mv release/*.dll plugins/ ; zip -r ddb_gui_qt5_windows-shared.zip plugins/*.dll
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: windows
path: ddb_gui_qt5_windows_static.zip
path: ddb_gui_qt5_windows-shared.zip

0 comments on commit 8094a34

Please sign in to comment.