2020-04-21 08:53:37 +03:00
|
|
|
name: Build Check
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
2020-04-24 06:33:54 +03:00
|
|
|
build-ubuntu:
|
2020-05-03 08:27:35 +03:00
|
|
|
name: ${{ matrix.config.name }}
|
|
|
|
runs-on: ${{ matrix.config.os }}
|
2020-04-24 06:33:54 +03:00
|
|
|
strategy:
|
2020-05-03 21:15:48 +03:00
|
|
|
fail-fast: false
|
2020-04-24 06:33:54 +03:00
|
|
|
matrix:
|
2020-05-03 08:27:35 +03:00
|
|
|
config:
|
|
|
|
- {
|
|
|
|
name: "Ubuntu 18.04",
|
|
|
|
os: ubuntu-18.04,
|
|
|
|
options: { ZEAL_PORTABLE_BUILD: "OFF" },
|
|
|
|
}
|
|
|
|
- {
|
|
|
|
name: "Ubuntu 18.04, Portable",
|
|
|
|
os: ubuntu-18.04,
|
|
|
|
options: { ZEAL_PORTABLE_BUILD: "ON" },
|
|
|
|
}
|
2020-04-24 06:33:54 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get -y -qq update
|
|
|
|
sudo apt-get -y -qq --no-install-recommends install \
|
|
|
|
cmake \
|
|
|
|
extra-cmake-modules \
|
|
|
|
libarchive-dev \
|
|
|
|
libqt5x11extras5-dev \
|
|
|
|
libsqlite3-dev \
|
|
|
|
libxcb-keysyms1-dev \
|
2020-04-27 02:17:12 +03:00
|
|
|
qt5-default \
|
|
|
|
qtwebengine5-dev
|
2020-04-24 06:33:54 +03:00
|
|
|
|
|
|
|
- name: Configure
|
|
|
|
run: |
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
2020-05-03 08:27:35 +03:00
|
|
|
cmake -DZEAL_PORTABLE_BUILD="${{ matrix.config.options.ZEAL_PORTABLE_BUILD }}" ..
|
2020-04-24 06:33:54 +03:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cmake --build build
|
|
|
|
|
2020-05-03 21:15:48 +03:00
|
|
|
build-windows:
|
|
|
|
name: ${{ matrix.config.name }}
|
|
|
|
runs-on: ${{ matrix.config.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
config:
|
|
|
|
- {
|
|
|
|
name: "Windows Server 2019",
|
|
|
|
os: windows-2019,
|
2020-05-10 17:31:39 +03:00
|
|
|
qt_version: '5.14.2',
|
2020-05-03 21:15:48 +03:00
|
|
|
options: { ZEAL_PORTABLE_BUILD: "OFF" },
|
|
|
|
}
|
|
|
|
- {
|
|
|
|
name: "Windows Server 2019, Portable",
|
|
|
|
os: windows-2019,
|
2020-05-10 17:31:39 +03:00
|
|
|
qt_version: '5.14.2',
|
2020-05-03 21:15:48 +03:00
|
|
|
options: { ZEAL_PORTABLE_BUILD: "ON" },
|
|
|
|
}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Prepare vcpkg
|
|
|
|
uses: lukka/run-vcpkg@v2
|
|
|
|
id: runvcpkg
|
|
|
|
with:
|
|
|
|
vcpkgArguments: libarchive[core] openssl sqlite3
|
|
|
|
vcpkgDirectory: ${{ runner.workspace }}/vcpkg/
|
|
|
|
vcpkgGitCommitId: 0ab1a9e1c64a3968631b59647e771beda7d1f256
|
|
|
|
vcpkgTriplet: x64-windows
|
|
|
|
|
|
|
|
- name: Cache Qt
|
|
|
|
id: cache-qt
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ${{ runner.workspace }}/Qt/
|
2020-05-10 17:31:39 +03:00
|
|
|
key: ${{ runner.os }}-qt-${{ matrix.config.qt_version }}
|
2020-05-03 21:15:48 +03:00
|
|
|
|
|
|
|
- name: Install Qt
|
|
|
|
uses: jurplel/install-qt-action@v2
|
|
|
|
with:
|
|
|
|
arch: win64_msvc2017_64
|
|
|
|
modules: qtwebengine
|
|
|
|
cached: ${{ steps.cache-qt.outputs.cache-hit }}
|
|
|
|
extra: --external 7z
|
2020-05-10 17:31:39 +03:00
|
|
|
version: ${{ matrix.config.qt_version }}
|
2020-05-03 21:15:48 +03:00
|
|
|
|
|
|
|
- name: Print Environment
|
|
|
|
run: gci env:* | sort-object name
|
|
|
|
|
|
|
|
- name: Configure & Build
|
|
|
|
uses: lukka/run-cmake@v2
|
|
|
|
with:
|
|
|
|
buildDirectory: ${{ runner.workspace }}/build/
|
|
|
|
cmakeAppendedArgs: -GNinja -DZEAL_PORTABLE_BUILD=${{ matrix.config.options.ZEAL_PORTABLE_BUILD }}
|
|
|
|
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
|
|
|
|
useVcpkgToolchainFile: true
|
|
|
|
|
2020-04-21 08:53:37 +03:00
|
|
|
appimage:
|
|
|
|
name: AppImage
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build AppImage
|
|
|
|
uses: ./.github/workflows/appimage/
|
|
|
|
with:
|
|
|
|
recipe: pkg/appimage/appimage-amd64.yml
|
|
|
|
apt_dependencies: >-
|
|
|
|
build-essential
|
|
|
|
cmake extra-cmake-modules
|
|
|
|
libappindicator-dev
|
|
|
|
libarchive-dev
|
|
|
|
libqt5x11extras5-dev
|
|
|
|
libsqlite3-dev
|
|
|
|
libxcb-keysyms1-dev
|
|
|
|
ninja-build
|
|
|
|
qtbase5-dev
|
2020-04-27 02:17:12 +03:00
|
|
|
qtwebengine5-dev
|
2020-04-21 08:53:37 +03:00
|
|
|
|
|
|
|
- name: Upload AppImage
|
|
|
|
uses: actions/upload-artifact@v2-preview
|
|
|
|
with:
|
|
|
|
name: zeal-dev-x86_64.AppImage # TODO: Provide real version.
|
|
|
|
path: zeal-*.AppImage
|
|
|
|
|
|
|
|
# TODO: Enable for releases.
|
|
|
|
- name: Upload AppImage.zsync
|
|
|
|
uses: actions/upload-artifact@v2-preview
|
|
|
|
if: github.event_name == 'create' && github.event.ref_type == 'tag' && startsWith(github.ref, 'v')
|
|
|
|
with:
|
|
|
|
name: zeal-dev-x86_64.AppImage.zsync
|
|
|
|
path: zeal-*.AppImage.zsync
|