diff --git a/.github/workflows/ubuntu-latest.yml b/.github/workflows/ubuntu-latest.yml index 7785968..4527853 100644 --- a/.github/workflows/ubuntu-latest.yml +++ b/.github/workflows/ubuntu-latest.yml @@ -70,3 +70,27 @@ jobs: files: | src/build/seergdb.tar.gz + debian-pkg: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install build dependencies + run: | + sudo apt-get -y install devscripts build-essential dpkg-dev equivs + sudo mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control + + - name: Build Debian package + run: dpkg-buildpackage --unsigned-source --unsigned-changes + + - name: Upload debian package Release + uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + automatic_release_tag: "debian-pkg-latest" + prerelease: true + title: "Debian Package Release" + files: | + ../seergdb_*_amd64.deb \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2dd2bd9..ed9d29b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -193,6 +193,8 @@ qt5_add_resources(SOURCE_FILES resource.qrc) if(NOT CMAKE_BUILD_TYPE MATCHES Debug) #Release, RelWithDebInfo and MinSizeRel if(WIN32) # Check if we are on Windows set(SYSTEM_TYPE WIN32) + else() # UNIX + set(SYSTEM_TYPE EXCLUDE_FROM_ALL) endif() message("System type is " ${SYSTEM_TYPE}) endif()