-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 50d290e
Showing
408 changed files
with
44,769 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# Copyright (C) 2016 Olivier Goffart <[email protected]> | ||
# | ||
# You may use this file under the terms of the 3-clause BSD license. | ||
# See the file LICENSE from this package for details. | ||
|
||
# This is the clang-format configuration style to be used by Qt, | ||
# based on the rules from https://wiki.qt.io/Qt_Coding_Style and | ||
# https://wiki.qt.io/Coding_Conventions | ||
|
||
--- | ||
# Webkit style was loosely based on the Qt style | ||
BasedOnStyle: WebKit | ||
|
||
Standard: c++17 | ||
|
||
# Column width is limited to 100 in accordance with Qt Coding Style. | ||
# https://wiki.qt.io/Qt_Coding_Style | ||
# Note that this may be changed at some point in the future. | ||
ColumnLimit: 100 | ||
# How much weight do extra characters after the line length limit have. | ||
# PenaltyExcessCharacter: 4 | ||
|
||
# Disable reflow of some specific comments | ||
# qdoc comments: indentation rules are different. | ||
# Translation comments and SPDX license identifiers are also excluded. | ||
CommentPragmas: "^!|^:|^ SPDX-License-Identifier:" | ||
|
||
# We want a space between the type and the star for pointer types. | ||
PointerBindsToType: false | ||
|
||
# We generally use "template <" with space. | ||
SpaceAfterTemplateKeyword: true | ||
|
||
# We want to break before the operators, but not before a '='. | ||
BreakBeforeBinaryOperators: NonAssignment | ||
|
||
# Braces are usually attached, but not after functions or class declarations. | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterControlStatement: false | ||
AfterEnum: false | ||
AfterFunction: true | ||
AfterNamespace: false | ||
AfterObjCDeclaration: false | ||
AfterStruct: true | ||
AfterUnion: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
|
||
# When constructor initializers do not fit on one line, put them each on a new line. | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
# Indent initializers by 4 spaces | ||
ConstructorInitializerIndentWidth: 4 | ||
|
||
# Indent width for line continuations. | ||
ContinuationIndentWidth: 8 | ||
|
||
# No indentation for namespaces. | ||
NamespaceIndentation: None | ||
|
||
# Allow indentation for preprocessing directives (if/ifdef/endif). https://reviews.llvm.org/rL312125 | ||
IndentPPDirectives: AfterHash | ||
# We only indent with 2 spaces for preprocessor directives | ||
PPIndentWidth: 2 | ||
|
||
# Horizontally align arguments after an open bracket. | ||
# The coding style does not specify the following, but this is what gives | ||
# results closest to the existing code. | ||
AlignAfterOpenBracket: true | ||
AlwaysBreakTemplateDeclarations: true | ||
|
||
# Ideally we should also allow less short function in a single line, but | ||
# clang-format does not handle that. | ||
AllowShortFunctionsOnASingleLine: Inline | ||
|
||
# The coding style specifies some include order categories, but also tells to | ||
# separate categories with an empty line. It does not specify the order within | ||
# the categories. Since the SortInclude feature of clang-format does not | ||
# re-order includes separated by empty lines, the feature is not used. | ||
SortIncludes: false | ||
|
||
# macros for which the opening brace stays attached. | ||
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ] | ||
|
||
# Break constructor initializers before the colon and after the commas. | ||
BreakConstructorInitializers: BeforeColon | ||
|
||
# Add "// namespace <namespace>" comments on closing brace for a namespace | ||
# Ignored for namespaces that qualify as a short namespace, | ||
# see 'ShortNamespaceLines' | ||
FixNamespaceComments: true | ||
|
||
# Definition of how short a short namespace is, default 1 | ||
ShortNamespaceLines: 1 | ||
|
||
# When escaping newlines in a macro attach the '\' as far left as possible, e.g. | ||
##define a \ | ||
# something; \ | ||
# other; \ | ||
# thelastlineislong; | ||
AlignEscapedNewlines: Left | ||
|
||
# Avoids the addition of a space between an identifier and the | ||
# initializer list in list-initialization. | ||
SpaceBeforeCpp11BracedList: false | ||
|
||
InsertBraces: true | ||
|
||
--- | ||
# Use the Google-based style for .proto files. | ||
Language: Proto | ||
BasedOnStyle: Google | ||
IndentWidth: 4 | ||
ColumnLimit: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
name: 'Gossip prepare action' | ||
description: 'Recurring tasks for CI jobs' | ||
inputs: | ||
qt-version: | ||
description: 'QT version' | ||
required: true | ||
default: '6.8.0' | ||
qt-only: | ||
description: 'Install Qt only, skip other steps' | ||
default: 'false' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Setup cmake | ||
uses: jwlawson/actions-setup-cmake@v2 | ||
with: | ||
cmake-version: 'latest' | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
if: inputs.qt-only == 'false' | ||
run: | | ||
sudo apt-get update | ||
sudo apt install -y libusb-1.0-0-dev uuid-dev libldap-dev libssl-dev libudev-dev ninja-build llvm llvm-dev | ||
sudo snap install yq | ||
- name: Install git lfs | ||
shell: bash | ||
run: curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v4 | ||
with: | ||
version: ${{ inputs.qt-version }} | ||
host: 'linux' | ||
target: 'desktop' | ||
modules: 'qt5compat qtmultimedia' | ||
arch: 'linux_gcc_64' | ||
cache: true | ||
|
||
- name: Get hashes | ||
id: hashes | ||
shell: bash | ||
if: inputs.qt-only == 'false' | ||
run: | | ||
echo "QCA_HASH=$(git submodule status external/qca | awk '{print $1}')" >> $GITHUB_OUTPUT | ||
echo "HIDAPI_TAG=$(yq '.. | select(has("name")) | select(.name == "hidapi") | .sources[] | .tag' ${{github.workspace}}/resources/flatpak/de.gonicus.gonnect.yml)" >> $GITHUB_OUTPUT | ||
echo "PJSIP_TAG=$(yq '.. | select(has("name")) | select(.name == "pjsip") | .sources[] | .tag' ${{github.workspace}}/resources/flatpak/de.gonicus.gonnect.yml)" >> $GITHUB_OUTPUT | ||
- name: Cache hidapi | ||
id: cache-hidapi | ||
if: inputs.qt-only == 'false' | ||
uses: actions/cache@v4 | ||
with: | ||
path: hidapi | ||
key: ${{ steps.hashes.outputs.HIDAPI_TAG }}-hidapi | ||
|
||
- name: Build hidapi | ||
shell: bash | ||
if: ${{ inputs.qt-only == 'false' && steps.cache-hidapi.outputs.cache-hit != 'true' }} | ||
run: | | ||
git clone https://github.com/libusb/hidapi.git | ||
cd hidapi | ||
git checkout ${{ steps.hashes.outputs.HIDAPI_TAG }} | ||
mkdir -p build | ||
cd build | ||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr | ||
make | ||
- name: Install hidapi | ||
shell: bash | ||
if: inputs.qt-only == 'false' | ||
run: | | ||
cd hidapi/build | ||
sudo make install | ||
- name: Cache pjsip | ||
id: cache-pjsip | ||
if: inputs.qt-only == 'false' | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{github.workspace}}/pjproject | ||
key: ${{ steps.hashes.outputs.PJSIP_TAG }}-pjsip | ||
|
||
- name: Install pjsip | ||
shell: bash | ||
if: ${{ inputs.qt-only == 'false' && steps.cache-pjsip.outputs.cache-hit != 'true' }} | ||
run: | | ||
git clone https://github.com/pjsip/pjproject.git pj-clone | ||
cd pj-clone | ||
git checkout ${{ steps.hashes.outputs.PJSIP_TAG }} | ||
# use config-opts from flatpak manifest | ||
echo -n "./configure --prefix=${{github.workspace}}/pjproject " > c | ||
yq '.. | select(has("name")) | select(.name == "pjsip") | .config-opts[]' ${{github.workspace}}/resources/flatpak/de.gonicus.gonnect.yml | sed -r 's/^([A-Z_]+)=(.+)$/\1="\2"/g' | tr '\n' ' ' >> c | ||
bash c | ||
cat c | ||
make | ||
make install | ||
- name: Cache qca | ||
id: cache-qca | ||
if: inputs.qt-only == 'false' | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{github.workspace}}/qca | ||
key: ${{ steps.hashes.outputs.QCA_HASH }}-qca | ||
|
||
- name: Install qca | ||
shell: bash | ||
if: ${{ inputs.qt-only == 'false' && steps.cache-qca.outputs.cache-hit != 'true' }} | ||
run: | | ||
cd external/qca | ||
mkdir -p build | ||
cd build | ||
${QT_ROOT_DIR}/bin/qt-cmake .. -DBUILD_WITH_QT6=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/qca -DBUILD_TESTS=OFF -DBUILD_TOOLS=OFF | ||
make | ||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
onboarding: false, | ||
requireConfig: "ignored", | ||
platform: "github", | ||
repositories: [ | ||
"gonicus/gonnect" | ||
], | ||
prConcurrentLimit: 0, | ||
prHourlyLimit: 5, | ||
semanticCommits: "enabled", | ||
enabledManagers: [ | ||
"github-actions", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Check for updates | ||
on: | ||
#schedule: # for scheduling to work this file must be in the default branch | ||
#- cron: "0 * * * *" # run every hour | ||
workflow_dispatch: # can be manually dispatched under GitHub's "Actions" tab | ||
|
||
jobs: | ||
flatpak-external-data-checker: | ||
runs-on: ubuntu-24.04 | ||
|
||
strategy: | ||
matrix: | ||
branch: [ main ] # list all branches to check | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ matrix.branch }} | ||
|
||
- shell: bash | ||
run: | | ||
rm .git/hooks/post-checkout # git-lfs not available | ||
rm .git/hooks/pre-push | ||
- uses: docker://ghcr.io/flathub/flatpak-external-data-checker:latest | ||
env: | ||
GIT_AUTHOR_NAME: Flatpak External Data Checker | ||
GIT_COMMITTER_NAME: Flatpak External Data Checker | ||
# email sets "github-actions[bot]" as commit author, see https://github.community/t/github-actions-bot-email-address/17204/6 | ||
GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com | ||
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: --update --never-fork ./resources/flatpak/de.gonicus.gonnect.yml | ||
|
Oops, something went wrong.