Move debian back to source dir

PPA failed to build
This commit is contained in:
Jonas Kvinge
2024-12-17 00:09:22 +01:00
parent 82156e8a13
commit f971c92f32
6 changed files with 20 additions and 13 deletions

View File

@@ -472,14 +472,18 @@ jobs:
run: cmake -E make_directory build run: cmake -E make_directory build
- name: Configure CMake - name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WERROR=ON run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WERROR=ON
- name: Delete build directory
run: rm -rf build
- name: make deb - name: make deb
working-directory: build
run: dpkg-buildpackage -b -d -uc -us -nc -j4 run: dpkg-buildpackage -b -d -uc -us -nc -j4
- name: Copy deb
run: cp ../*.deb
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: debian-${{matrix.debian_version}} name: debian-${{matrix.debian_version}}
path: "*.deb" path: |
*.deb
build-ubuntu: build-ubuntu:
@@ -549,9 +553,12 @@ jobs:
run: cmake -E make_directory build run: cmake -E make_directory build
- name: Configure CMake - name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WERROR=ON run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WERROR=ON
- name: Delete build directory
run: rm -rf build
- name: make deb - name: make deb
working-directory: build
run: dpkg-buildpackage -b -d -uc -us -nc -j4 run: dpkg-buildpackage -b -d -uc -us -nc -j4
- name: Copy deb
run: cp ../*.deb ../*.ddeb .
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@@ -633,16 +640,17 @@ jobs:
run: cmake -E make_directory build run: cmake -E make_directory build
- name: Configure CMake - name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WERROR=ON run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WERROR=ON
- name: Delete build directory
run: rm -rf build
- name: Import Ubuntu PPA GPG private key - name: Import Ubuntu PPA GPG private key
uses: crazy-max/ghaction-import-gpg@v6 uses: crazy-max/ghaction-import-gpg@v6
with: with:
gpg_private_key: ${{secrets.UBUNTU_PPA_GPG_PRIVATE_KEY}} gpg_private_key: ${{secrets.UBUNTU_PPA_GPG_PRIVATE_KEY}}
- name: dpkg-buildpackage - name: dpkg-buildpackage
working-directory: build
run: dpkg-buildpackage -S -d -k573D197B5EA20EDF run: dpkg-buildpackage -S -d -k573D197B5EA20EDF
- name: Upload Unstable PPA - name: Upload Unstable PPA
if: github.event_name == 'push' if: github.event_name == 'push'
run: dput ppa:jonaski/strawberry-unstable *_source.changes run: dput ppa:jonaski/strawberry-unstable ../*_source.changes
- name: Upload Stable PPA - name: Upload Stable PPA
if: github.event_name == 'release' if: github.event_name == 'release'
run: dput ppa:jonaski/strawberry ../*_source.changes run: dput ppa:jonaski/strawberry ../*_source.changes

1
.gitignore vendored
View File

@@ -11,3 +11,4 @@
/out /out
/CMakeSettings.json /CMakeSettings.json
/dist/scripts/maketarball.sh /dist/scripts/maketarball.sh
/debian/changelog

View File

@@ -2,5 +2,5 @@ find_program(LSB_RELEASE_EXEC lsb_release)
find_program(DPKG_BUILDPACKAGE dpkg-buildpackage) find_program(DPKG_BUILDPACKAGE dpkg-buildpackage)
if (LSB_RELEASE_EXEC AND DPKG_BUILDPACKAGE) if (LSB_RELEASE_EXEC AND DPKG_BUILDPACKAGE)
add_custom_target(deb WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMAND ${DPKG_BUILDPACKAGE} -b -d -uc -us -nc -j4) add_custom_target(deb WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMAND ${DPKG_BUILDPACKAGE} -b -d -uc -us -nc -j4)
endif() endif()

View File

@@ -4,11 +4,7 @@ if(LSB_RELEASE_EXEC AND DPKG_BUILDPACKAGE)
execute_process(COMMAND /bin/sh "-c" "${LSB_RELEASE_EXEC} -cs" OUTPUT_VARIABLE DEB_CODENAME OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND /bin/sh "-c" "${LSB_RELEASE_EXEC} -cs" OUTPUT_VARIABLE DEB_CODENAME OUTPUT_STRIP_TRAILING_WHITESPACE)
if(DEB_CODENAME AND DEB_DATE) if(DEB_CODENAME AND DEB_DATE)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/control ${CMAKE_CURRENT_BINARY_DIR}/control COPYONLY) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/changelog.in ${CMAKE_CURRENT_SOURCE_DIR}/changelog)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/rules ${CMAKE_CURRENT_BINARY_DIR}/rules COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/changelog.in ${CMAKE_CURRENT_BINARY_DIR}/changelog)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/copyright ${CMAKE_CURRENT_BINARY_DIR}/copyright COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/clean ${CMAKE_CURRENT_BINARY_DIR}/clean COPYONLY)
endif() endif()
endif() endif()

3
debian/control vendored
View File

@@ -2,8 +2,7 @@ Source: strawberry
Section: sound Section: sound
Priority: optional Priority: optional
Maintainer: Jonas Kvinge <jonas@jkvinge.net> Maintainer: Jonas Kvinge <jonas@jkvinge.net>
Build-Depends: debhelper (>= 11), Build-Depends: debhelper-compat (= 12),
debhelper-compat (= 13),
git, git,
make, make,
cmake, cmake,

3
debian/rules vendored
View File

@@ -3,5 +3,8 @@
export DH_VERBOSE=1 export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all export DEB_BUILD_MAINT_OPTIONS=hardening=+all
override_dh_installchangelogs:
dh_installchangelogs Changelog
%: %:
dh $@ dh $@