Add github ci

pull/28/head
reionwong 4 years ago
parent 7238a62a78
commit 958a8d7900

@ -0,0 +1,39 @@
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
debian:
name: Debian
runs-on: ubuntu-latest
container: docker.io/library/debian:sid
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Update repository
run: apt-get update -y
- name: Install the basic dev packages
run: apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++
- name: Install build dependencies
run: mk-build-deps -i -t "apt-get --yes" -r
- name: Build Package
run: dpkg-buildpackage -b -uc -us -j$(nproc)
ubuntu:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Update repository
run: sudo apt-get update -y
- name: Install the basic dev packages
run: sudo apt-get install -y equivs curl git devscripts lintian build-essential automake autotools-dev cmake g++
- name: Install build dependencies
run: sudo mk-build-deps -i -t "apt-get --yes" -r
- name: Build Package
run: dpkg-buildpackage -b -uc -us -j$(nproc)

@ -75,7 +75,12 @@ Application::Application(int &argc, char **argv)
qmlRegisterType<Time>(uri, 1, 0, "Time");
qmlRegisterType<TimeZoneMap>(uri, 1, 0, "TimeZoneMap");
qmlRegisterSingletonType<Password>(uri, 1, 0, "Password", passwordSingleton);
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
qmlRegisterType<QAbstractItemModel>();
#else
qmlRegisterAnonymousType<QAbstractItemModel>(uri, 1);
#endif
// Translations
QLocale locale;

@ -164,6 +164,15 @@ Item {
category: qsTr("System")
}
// ListElement {
// title: qsTr("Default Apps")
// name: "datetime"
// page: "qrc:/qml/DateTime/Main.qml"
// iconSource: "datetime.svg"
// iconColor: "#418CFF"
// category: qsTr("System")
// }
ListElement {
title: qsTr("Language")
name: "language"

@ -44,7 +44,7 @@ FishUI.Window {
FishUI.WindowBlur {
view: rootWindow
geometry: Qt.rect(rootWindow.x, rootWindow.y, rootWindow.width, rootWindow.height)
windowRadius: rootWindow.background.radius
windowRadius: rootWindow.windowRadius
enabled: true
}

Loading…
Cancel
Save