Github action

This commit is contained in:
reionwong 2021-07-26 01:34:33 +08:00
parent b18a84a493
commit 7996e01f58
4 changed files with 40 additions and 3 deletions

27
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
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
run: mkdir build; cd build; cmake .. ; make -j$(nproc);

View file

@ -12,7 +12,7 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt5 COMPONENTS Core DBus Quick LinguistTools REQUIRED) find_package(Qt5 COMPONENTS Core DBus Quick LinguistTools REQUIRED)
find_package(FishUI REQUIRED) # find_package(FishUI REQUIRED)
find_package(KF5KIO) find_package(KF5KIO)
find_package(KF5Solid) find_package(KF5Solid)
@ -57,7 +57,7 @@ target_link_libraries(cutefish-filemanager
KF5::KIOWidgets KF5::KIOWidgets
KF5::Solid KF5::Solid
FishUI # FishUI
) )
file(GLOB TS_FILES translations/*.ts) file(GLOB TS_FILES translations/*.ts)

View file

@ -410,6 +410,16 @@ ListView {
verticalAlignment: TextEdit.AlignVCenter verticalAlignment: TextEdit.AlignVCenter
z: 999 z: 999
background: Item {
Rectangle {
anchors.fill: parent
anchors.topMargin: FishUI.Units.smallSpacing
anchors.bottomMargin: FishUI.Units.smallSpacing
radius: FishUI.Theme.smallRadius
color: FishUI.Theme.backgroundColor
}
}
property Item targetItem: null property Item targetItem: null
onTargetItemChanged: { onTargetItemChanged: {

View file

@ -281,7 +281,7 @@ Item {
topMargin: FishUI.Units.smallSpacing topMargin: FishUI.Units.smallSpacing
leftMargin: FishUI.Units.largeSpacing leftMargin: FishUI.Units.largeSpacing
rightMargin: FishUI.Units.largeSpacing rightMargin: FishUI.Units.largeSpacing
bottomMargin: FishUI.Units.largeSpacing bottomMargin: FishUI.Units.smallSpacing
spacing: FishUI.Units.largeSpacing spacing: FishUI.Units.largeSpacing
onCountChanged: { onCountChanged: {