diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 47e89f80..37707947 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,12 @@ on: type: boolean description: 'Skip running unit tests' required: false - default: true + default: true + build_deb: + type: boolean + description: 'Build Debian package' + required: false + default: false jobs: windows: @@ -31,6 +36,7 @@ jobs: linux_deb: needs: [linux] + if: inputs.build_deb uses: ./.github/workflows/build-deb.yml with: version: ${{ needs.linux.outputs.version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 243606ad..564c8b03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,7 @@ jobs: with: version_override: ${{ needs.prerelease.outputs.version }} run_unit_tests: false + build_deb: true release: needs: [prerelease,build] @@ -50,7 +51,7 @@ jobs: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' with: tag_name: '${{ github.ref }}' - release_name: 'Libation ${{ steps.version.outputs.version }}' + release_name: 'Libation ${{ needs.prerelease.outputs.version }}' body: draft: true prerelease: false diff --git a/.github/workflows/scripts/targz2deb.sh b/.github/workflows/scripts/targz2deb.sh index 4143aef8..783eaf47 100644 --- a/.github/workflows/scripts/targz2deb.sh +++ b/.github/workflows/scripts/targz2deb.sh @@ -105,6 +105,9 @@ ln -s /usr/lib/libation/Libation /usr/bin/libation ln -s /usr/lib/libation/Hangover /usr/bin/hangover ln -s /usr/lib/libation/LibationCli /usr/bin/libationcli +# Increase the maximum number of inotify instances +echo fs.inotify.max_user_instances=524288 | tee -a /etc/sysctl.conf && sysctl -p + # workaround until this file is moved to the user's home directory touch /usr/lib/libation/appsettings.json chmod 666 /usr/lib/libation/appsettings.json