Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated dependecies #66

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1c11bd5
Updatted dependecies
synacker Sep 8, 2024
ea6e000
Fixed github acrions
synacker Sep 8, 2024
022e691
Some fixes for build
synacker Sep 8, 2024
61178c1
Fixed linux build
synacker Sep 8, 2024
b84e61d
Added packages for linux. Temprary disabled other platforms
synacker Sep 8, 2024
78ea3af
Added packages for linux
synacker Sep 8, 2024
43e8a4c
Added packages
synacker Sep 8, 2024
3c8526c
Added package
synacker Sep 8, 2024
f4e9fe1
Return windows build
synacker Sep 8, 2024
c04a5bb
Returned macos
synacker Sep 8, 2024
b65d05f
Fixed macois and win actions
synacker Sep 8, 2024
64df53c
Updated C++ standard
synacker Sep 8, 2024
26d16b2
Moved install apt packages to separate step without extensions
synacker Sep 9, 2024
7965db2
Return deb actions
synacker Sep 9, 2024
c4614df
Fixed standard for win
synacker Sep 9, 2024
a5caa1f
Tried to fix install deb packages
synacker Sep 9, 2024
0a59abc
Added sudo for install deb packages
synacker Sep 9, 2024
ec89fe2
Fix
synacker Sep 9, 2024
2138d02
Fix
synacker Sep 9, 2024
bbfe7d2
Fix
synacker Sep 9, 2024
3c1c650
Fix
synacker Sep 9, 2024
45dde3f
Fix
synacker Sep 9, 2024
5ede25c
Fix
synacker Sep 9, 2024
a39f461
Fix
synacker Sep 9, 2024
e34693c
Fix
synacker Sep 9, 2024
8088f88
Fix
synacker Sep 9, 2024
ef6e6f3
Fix
synacker Sep 9, 2024
d454de0
Fix
synacker Sep 9, 2024
db181ae
Fix
synacker Sep 9, 2024
4eb87fb
Fix
synacker Sep 9, 2024
d703dbd
Fix
synacker Sep 11, 2024
e951b70
Fix
synacker Sep 11, 2024
8e6aa96
Fix
synacker Sep 11, 2024
326856e
Fix
synacker Sep 11, 2024
36e32a6
Fix
synacker Sep 11, 2024
14498c4
Fix
synacker Sep 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 69 additions & 48 deletions .github/workflows/daggy-github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,80 @@ on:

jobs:
linux-gcc12_x64:
runs-on: ubuntu-latest
container:
image: docker.io/synacker2/daggy_gcc12
env:
NOT_ON_C3I: 1
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup environment
run: |
sudo apt-get update
sudo apt-get install -y libgl-dev \
libgl-dev \
libgl1-mesa-dev \
libx11-dev \
libx11-xcb-dev \
libfontenc-dev \
libice-dev \
libsm-dev \
libxau-dev \
libxaw7-dev \
libx11-xcb-dev \
libfontenc-dev \
libxcomposite-dev \
libxcursor-dev \
libxdamage-dev \
libxfixes-dev \
libxi-dev \
libxinerama-dev \
libxmu-dev \
libxmuu-dev \
libxpm-dev \
libxrandr-dev \
libxres-dev \
libxss-dev \
libxtst-dev \
libxv-dev \
libxxf86vm-dev \
libxcb-glx0-dev \
libxcb-render-util0-dev \
libxcb-xkb-dev \
libxcb-icccm4-dev \
libxcb-image0-dev \
libxcb-keysyms1-dev \
libxcb-randr0-dev \
libxcb-shape0-dev \
libxcb-sync-dev \
libxcb-xfixes0-dev \
libxcb-xinerama0-dev \
libxcb-dri3-dev \
libxcb-cursor-dev \
libxcb-dri2-0-dev \
libxcb-dri3-dev \
libxcb-present-dev \
libxcb-composite0-dev \
libxcb-ewmh-dev \
libxcb-res0-dev \
libxv-dev \
libxcb-util-dev \
libxcb-util0-dev
shell: bash

- name: Cache conan packages
uses: actions/cache@v3
id: conan-data-gcc12
with:
path: ~/.conan2/p
key: conan-data-gcc12

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip

- run: pip install -r requirements.txt
- run: conan --version
- run: conan profile detect

Expand Down Expand Up @@ -65,7 +122,7 @@ jobs:
build/Release/*.rpm
build/Release/*.zip

win-msvc193_x64:
win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -81,20 +138,6 @@ jobs:
c:\.conan2\
key: conan-data-msvc

- name: Cache QtIFW
uses: actions/cache@v3
id: qt-ifw4
with:
path: C:\QtIFW
key: qt-ifw4

- name: Cache vc_redist
uses: actions/cache@v3
id: vc_redist17
with:
path: ~/downloads
key: vc_redist17

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
Expand All @@ -105,34 +148,14 @@ jobs:
- run: conan --version
- run: conan profile detect

- name: Download vc_redist
run: |
if ( -not(Test-Path ~/downloads/vc_redist-x64.exe) ) {
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -UseBasicParsing -OutFile ~/downloads/vc_redist-x64.exe 'https://aka.ms/vs/17/release/vc_redist.x64.exe'
}
ls ~/downloads

- name: Make build dir
run: mkdir build

- name: Move vc_redist
run: mv ~/downloads/vc_redist-x64.exe build/

- name: Install QtIFW
run: |
if ( -not(Test-Path C:\QtIFW) ) {
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -UseBasicParsing -OutFile ~/QtInstallerFramework-win-x86.exe 'https://download.qt.io/official_releases/qt-installer-framework/4.6.0/QtInstallerFramework-windows-x64-4.6.0.exe'
~/QtInstallerFramework-win-x86.exe --am --al -c --root C:\QtIFW install
}
ls C:\QtIFW

- name: Conan config
run: conan config install CI/conan

- name: Conan install
run: conan install . --build=missing --profile:build=win-msvc193_x64 --profile:host=win-msvc193_x64 -of .
run: conan install . --build=missing -s compiler.cppstd=17 -of .

- name: Conan cache clean
working-directory: build
Expand All @@ -142,7 +165,7 @@ jobs:
run: git config --global --add safe.directory %GITHUB_WORKSPACE%

- name: Conan build
run: conan build . --profile:build=win-msvc193_x64 --profile:host=win-msvc193_x64 --build=missing -of .
run: conan build . --build=missing -s compiler.cppstd=17 -of .

- name: Tests
working-directory: build
Expand All @@ -163,10 +186,9 @@ jobs:
with:
name: daggy_win_x64
path: |
build/*.exe
build/*.zip

macos-clang13_x64:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -194,13 +216,13 @@ jobs:
run: conan config install CI/conan

- name: Conan install
run: conan install . --build=missing --profile:build=macos-clang13_x64 --profile:host=macos-clang14_x64 -of .
run: conan install . --build=missing -s compiler.cppstd=17 -of .

- name: Conan remove build folders
run: conan cache clean "*" --source --build --temp --download

- name: Conan build
run: conan build . --profile:build=macos-clang13_x64 --profile:host=macos-clang14_x64 --build=missing -of .
run: conan build . --build=missing -s compiler.cppstd=17 -of .

- name: daggy version
working-directory: build/Release
Expand All @@ -224,6 +246,5 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: daggy_macos_x64
path: |
build/Release/*.dmg
path:
build/Release/*.zip
2 changes: 1 addition & 1 deletion CI/conan/profiles/linux-gcc12_x64
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ os=Linux
arch=x86_64
compiler=gcc
compiler.version=12
compiler.cppstd=gnu17
compiler.cppstd=17
compiler.libcxx=libstdc++
build_type=Release
8 changes: 0 additions & 8 deletions CI/conan/profiles/macos-clang13_x64

This file was deleted.

8 changes: 0 additions & 8 deletions CI/conan/profiles/macos-clang14_x64

This file was deleted.

9 changes: 0 additions & 9 deletions CI/conan/profiles/win-msvc193_x64

This file was deleted.

66 changes: 0 additions & 66 deletions CI/docker/debian_gcc12/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions CI/docker/debian_gcc12/README.md

This file was deleted.

3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This cmake only for developing daggy
# Use ${PROJECT_SOURCE_DIR}/cmake/conan_provider.cmake for working from IDE.
# Use ${PROJECT_SOURCE_DIR}/cmake/conan_provider.cmake for working from IDE (see https://github.com/conan-io/cmake-conan for details)

cmake_minimum_required(VERSION 3.24.0)

message(WARNING "This CMakeLists.txt only for developing")
Expand Down
8 changes: 4 additions & 4 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DaggyConan(ConanFile):
_cmake = None

def set_version(self):
self.version = GitVersion().standard
self.version = GitVersion().version

def validate(self):
check_min_cppstd(self, "17")
Expand All @@ -69,11 +69,11 @@ def config_options(self):
self.options["libssh2"].shared = True

def build_requirements(self):
self.tool_requires("cmake/3.27.7")
self.tool_requires("gtest/1.13.0")
self.tool_requires("cmake/3.30.1")
self.tool_requires("gtest/1.15.0")

def requirements(self):
self.requires("qt/6.6.1")
self.requires("qt/6.7.1")
self.requires("kainjow-mustache/4.1")
self.requires("yaml-cpp/0.8.0")
self.requires("libssh2/1.11.0")
Expand Down
1 change: 0 additions & 1 deletion git_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def build(self):
@property
def branch(self):
stream = os.popen("git branch --show-current")

return stream.read().strip()

@property
Expand Down
5 changes: 2 additions & 3 deletions src/Daggy/CConsoleDaggy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ CConsoleDaggy::CConsoleDaggy(QObject* parent)
, need_hard_stop_(false)
{
qApp->setApplicationName("daggy");
qApp->setApplicationVersion(DAGGY_VERSION_STANDARD);
qApp->setOrganizationName(DAGGY_VENDOR);
qApp->setApplicationVersion(DAGGY_VERSION_FULL);
qApp->setOrganizationDomain("daggy.dev");
qApp->setApplicationVersion(DAGGY_VERSION_STANDARD);
qApp->setOrganizationDomain("https://github.com/synacker/daggy");

connect(this, &CConsoleDaggy::interrupt, this, &CConsoleDaggy::stop, Qt::QueuedConnection);
connect(qApp, &QCoreApplication::aboutToQuit, this, &CConsoleDaggy::fixPcaps);
Expand Down
2 changes: 1 addition & 1 deletion src/cmake/pack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}")


if(WIN32)
set(CPACK_GENERATOR ZIP IFW)
set(CPACK_GENERATOR ZIP)
set(CPACK_IFW_ROOT "C:/QtIFW")
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})

Expand Down
Loading