Add Jenkinsfile
All checks were successful
FeedbackD-Configuration/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2020-09-10 12:01:46 -04:00
parent f4a1b3264a
commit 0a99c6d815
5 changed files with 50 additions and 3 deletions

View File

@ -33,5 +33,15 @@ install(TARGETS feedbackd-configuration)
include(GNUInstallDirs) include(GNUInstallDirs)
install(FILES "data/com.thebrokenrail.FeedbackD-Configuration.desktop" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications") install(FILES "data/com.thebrokenrail.FeedbackD-Configuration.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
install(FILES "data/com.thebrokenrail.FeedbackD-Configuration.png" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/96x96/apps") install(FILES "data/com.thebrokenrail.FeedbackD-Configuration.png" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/96x96/apps")
set(CPACK_PACKAGE_VENDOR "TheBrokenRail")
set(CPACK_PACKAGE_VERSION_MAJOR 1)
set(CPACK_PACKAGE_VERSION_MINOR 0)
set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPACK_GENERATOR "TGZ")
include(CPack)

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM arm64v8/alpine:edge
RUN apk add --no-cache build-base clang cmake libhandy1-dev gtk+3.0-dev json-glib-dev

22
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,22 @@
pipeline {
agent {
dockerfile true
}
stages {
stage('Prepare Build') {
steps {
sh 'mkdir build; cd build; cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILEr=clang++ ..'
}
}
stage('Build') {
steps {
sh 'cd build; make -j$(nproc) package'
}
post {
success {
archiveArtifacts artifacts: 'build/*.tar.gz', fingerprint: true
}
}
}
}
}

View File

@ -1,2 +1,9 @@
# FeedbackD Configuration # FeedbackD Configuration
A Simple Configuration Tool For [FeedbackD](https://source.puri.sm/Librem5/feedbackd) A Simple Configuration Tool For [FeedbackD](https://source.puri.sm/Librem5/feedbackd)
# Installation
1. Run:
```sh
sudo apk add gtk+3.0 libhandy1 gvfs json-glib
```
2. Download [Latest Build](TBD) And Extract To Desired Prefix

View File

@ -57,11 +57,16 @@ static void on_edit(GtkWidget *button, struct event_location *data) {
open_dialog(button, data, 0); open_dialog(button, data, 0);
} }
// Remove Widget Handler
static void remove_widget(GtkWidget *widget, __attribute__((unused)) void *data) {
gtk_widget_destroy(widget);
}
// Load Profile Into List // Load Profile Into List
static void load_profile(GtkListBox *list) { static void load_profile(GtkListBox *list) {
char *name = profile_list_to_name(list); char *name = profile_list_to_name(list);
gtk_container_foreach(GTK_CONTAINER(list), (GtkCallback) gtk_widget_destroy, NULL); gtk_container_foreach(GTK_CONTAINER(list), remove_widget, NULL);
JsonArray *profile = name_to_profile(name); JsonArray *profile = name_to_profile(name);
if (profile != NULL && list != NULL) { if (profile != NULL && list != NULL) {