Skip to content

Add playback icons #150

Add playback icons

Add playback icons #150

Workflow file for this run

name: ddb_gui_qt5
on: [ push, pull_request ]
jobs:
build_linux_static:
name: Static linux
runs-on: ubuntu-latest
container: ubuntu:22.04
steps:
- name: Install dependencies for Linux
run: |
apt-get -qq update
apt-get install -y -qq libxcb-xinerama0-dev git g++ wget zip perl cmake
apt-get install -y -qq '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev \
libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
apt-get install -y -qq zlib1g-dev libharfbuzz-dev libfreetype-dev libegl-dev libfontconfig1-dev libudev-dev libmtdev-dev libinput-dev libdbus-1-dev
- name: Checkout for Linux
uses: actions/checkout@v1
- name: Fix library links
run: chmod +x scripts/liblinks.sh; scripts/liblinks.sh
- name: Build for Linux
run: chmod +x scripts/build_static.sh; scripts/build_static.sh
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: linux
path: ddb_gui_qt5_linux-static.zip
build_linux_shared:
name: Shared linux
runs-on: ubuntu-latest
container: ubuntu:22.04
steps:
- name: Install dependencies for Linux
run: |
apt-get -qq update
apt-get install -y -qq sudo cmake zip
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.5.2'
host: 'linux'
target: 'desktop'
arch: 'gcc_64'
modules: 'qtcharts'
- name: Checkout for Linux
uses: actions/checkout@v1
- name: Build for Linux
run: cmake .; cmake --build . ; 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
uses: actions/checkout@v2
with:
submodules: true
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
msystem: CLANG64
update: true
install: >-
mingw-w64-clang-x86_64-toolchain make tar unzip xz zip mingw-w64-clang-x86_64-qt6-static mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-ninja
- name: Build for Windows
shell: msys2 {0}
run: CMAKE_PREFIX_PATH=/clang64/qt6-static/ cmake . ; cmake --build . ; 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:
msystem: CLANG64
update: true
install: >-
mingw-w64-clang-x86_64-toolchain make tar unzip xz zip mingw-w64-clang-x86_64-qt6-svg mingw-w64-clang-x86_64-qt6-declarative mingw-w64-clang-x86_64-qt6-base mingw-w64-clang-x86_64-qt6-charts mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-ninja
- name: Build for Windows
shell: msys2 {0}
run: cmake . ; cmake --build . ; mkdir -p plugins;mv ddb_gui_qt5*.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-shared.zip
build_macos_static:
name: Static macOS
runs-on: macos-latest
steps:
- name: Checkout for macOS
uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: |
brew install zip cmake
wget -q https://github.com/kuba160/qt5_static_build/releases/download/6.6.2/qt_6.6.2_static_macos.zip
unzip -qq qt_6.6.2_static_macos.zip
- name: Build for macOS
run: |
export PATH="/usr/local/opt/zip/bin:$PATH"
export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/cmake/bin:$PATH"
CMAKE_PREFIX_PATH=$PWD/qt5_static/ cmake .
cmake --build .
mkdir -p plugins
cp ddb_gui_qt5.dylib plugins/
zip -r ddb_gui_qt5_macos-static.zip plugins/*.dylib
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: macos
path: ddb_gui_qt5_macos-static.zip
build_macos_shared:
name: Shared macOS
runs-on: macos-latest
steps:
- name: Checkout for macOS
uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: brew install qt@6 gcc zip make
- name: Build for macOS
run: |
export PATH="/usr/local/opt/qt@5/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/qt@5/lib"
export CPPFLAGS="-I/usr/local/opt/qt@5/include"
export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig"
export PATH="/usr/local/opt/zip/bin:$PATH"
export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"
echo $PATH
cmake .
cmake --build .
mkdir -p plugins
cp ddb_gui_qt5.dylib plugins/
zip -r ddb_gui_qt5_macos-shared.zip plugins/*.dylib
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: macos
path: ddb_gui_qt5_macos-shared.zip