mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-22 16:04:28 +00:00
Bumps the github-actions group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `7.0.0` | `7.0.1` | | [actions/setup-java](https://github.com/actions/setup-java) | `5.3.0` | `6.0.0` | | [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `3.0.1` | `3.0.3` | | [actions/cache](https://github.com/actions/cache) | `5.0.5` | `6.1.0` | | [fjogeleit/http-request-action](https://github.com/fjogeleit/http-request-action) | `2.0.0` | `2.0.1` | | [actions/stale](https://github.com/actions/stale) | `10.3.0` | `11.0.0` | | [vedantmgoyal2009/winget-releaser](https://github.com/vedantmgoyal2009/winget-releaser) | `7bd472be23763def6e16bd06cc8b1cdfab0e2fd5` | `b3a5dae0047c6180023acba3f548c55fdf6b7193` | Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1) Updates `actions/setup-java` from 5.3.0 to 6.0.0 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/ad2b38190b15e4d6bdf0c97fb4fca8412226d287...dd06d9cba3e5552c54d9f8ea23572deb30010f7c) Updates `softprops/action-gh-release` from 3.0.1 to 3.0.3 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/718ea10b132b3b2eba29c1007bb80653f286566b...efb35369e0ad2afab669f228072c1b0d510eae64) Updates `actions/cache` from 5.0.5 to 6.1.0 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/27d5ce7f107fe9357f9df03efb73ab90386fccae...55cc8345863c7cc4c66a329aec7e433d2d1c52a9) Updates `fjogeleit/http-request-action` from 2.0.0 to 2.0.1 - [Release notes](https://github.com/fjogeleit/http-request-action/releases) - [Changelog](https://github.com/fjogeleit/http-request-action/blob/main/RELEASE.md) - [Commits](https://github.com/fjogeleit/http-request-action/compare/551353b829c3646756b2ec2b3694f819d7957495...f98bb26551cd1af7d3eb2674578a80754ece88db) Updates `actions/stale` from 10.3.0 to 11.0.0 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899...4391f3da665fdf50b6810c1a66712fb9ba21aa93) Updates `vedantmgoyal2009/winget-releaser` from 7bd472be23763def6e16bd06cc8b1cdfab0e2fd5 to b3a5dae0047c6180023acba3f548c55fdf6b7193 - [Release notes](https://github.com/vedantmgoyal2009/winget-releaser/releases) - [Commits](https://github.com/vedantmgoyal2009/winget-releaser/compare/7bd472be23763def6e16bd06cc8b1cdfab0e2fd5...b3a5dae0047c6180023acba3f548c55fdf6b7193) --- updated-dependencies: - dependency-name: actions/cache dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/setup-java dependency-version: 5.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/stale dependency-version: 11.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: fjogeleit/http-request-action dependency-version: 2.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: softprops/action-gh-release dependency-version: 3.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: vedantmgoyal2009/winget-releaser dependency-version: b3a5dae0047c6180023acba3f548c55fdf6b7193 dependency-type: direct:production dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
171 lines
7.6 KiB
YAML
171 lines
7.6 KiB
YAML
name: Build Debian Package
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 22 20 * *'
|
|
workflow_dispatch:
|
|
inputs:
|
|
semver:
|
|
description: 'SemVer String (e.g. 1.7.0-beta1)'
|
|
ppaver:
|
|
description: 'Base PPA Version String (e.g. 1.6.16+1.7.0~beta1) without -0ppa1'
|
|
dput:
|
|
description: 'Upload to PPA'
|
|
required: true
|
|
default: false
|
|
type: boolean
|
|
push:
|
|
branches-ignore:
|
|
- 'dependabot/**'
|
|
paths:
|
|
- '.github/workflows/debian.yml'
|
|
- 'dist/linux/debian/**'
|
|
- 'dist/linux/common/**'
|
|
- 'dist/linux/resources/**'
|
|
|
|
env:
|
|
JAVA_DIST: 'temurin'
|
|
JAVA_VERSION: '26.0.1+8'
|
|
DEB_BUILD_DEPENDS: 'debhelper (>=10), coffeelibs-jdk-26 (>= 26.0.1+8-0ppa1), libgtk-3-0 (>= 3.20.0), libxxf86vm1, libgl1'
|
|
OPENJFX_JMODS_AMD64: 'https://download2.gluonhq.com/openjfx/25.0.3/openjfx-25.0.3_linux-x64_bin-jmods.zip'
|
|
OPENJFX_JMODS_AMD64_HASH: '47035c653863a8e4be3dc6f142b8dbd84b4bb1efc9a8cbc68413e6a5ff5e9f50'
|
|
OPENJFX_JMODS_AARCH64: 'https://download2.gluonhq.com/openjfx/25.0.3/openjfx-25.0.3_linux-aarch64_bin-jmods.zip'
|
|
OPENJFX_JMODS_AARCH64_HASH: 'e3fd682354346845d2944a2da2b1ff2b6cb9259d92027f2f9c121b9b93c5e42f'
|
|
|
|
jobs:
|
|
get-version:
|
|
uses: ./.github/workflows/get-version.yml
|
|
with:
|
|
version: ${{ inputs.semver }} #okay if not defined
|
|
|
|
build:
|
|
name: Build Debian Package
|
|
runs-on: ubuntu-22.04
|
|
needs: [get-version]
|
|
env:
|
|
INPUT_PPAVER: ${{ inputs.ppaver }}
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- id: deb-version
|
|
name: Determine deb-version
|
|
run: |
|
|
if [ -n "${INPUT_PPAVER}" ]; then
|
|
echo "debVersion=${INPUT_PPAVER}" >> "$GITHUB_OUTPUT"
|
|
else
|
|
echo "debVersion=${{needs.get-version.outputs.semVerStr}}" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
- name: Install build tools
|
|
run: |
|
|
sudo add-apt-repository -y ppa:coffeelibs/openjdk
|
|
sudo apt-get update
|
|
sudo apt-get install devscripts dput
|
|
sudo apt-get satisfy "${DEB_BUILD_DEPENDS}"
|
|
env:
|
|
DEB_BUILD_DEPENDS: ${{ env.DEB_BUILD_DEPENDS }}
|
|
- name: Setup Java
|
|
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
|
|
with:
|
|
distribution: ${{ env.JAVA_DIST }}
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
check-latest: true
|
|
cache: 'maven'
|
|
- name: Run maven
|
|
run: ./mvnw -B clean package -DskipTests
|
|
- name: Download OpenJFX jmods
|
|
id: download-jmods
|
|
run: |
|
|
curl --silent --fail-with-body --proto "=https" -L ${{ env.OPENJFX_JMODS_AMD64 }} -o openjfx-amd64.zip
|
|
echo "${{ env.OPENJFX_JMODS_AMD64_HASH }} openjfx-amd64.zip" | shasum -a256 --check
|
|
mkdir -p jmods/amd64
|
|
unzip -j openjfx-amd64.zip \*/javafx.base.jmod \*/javafx.controls.jmod \*/javafx.fxml.jmod \*/javafx.graphics.jmod -d jmods/amd64
|
|
curl --silent --fail-with-body --proto "=https" -L ${{ env.OPENJFX_JMODS_AARCH64 }} -o openjfx-aarch64.zip
|
|
echo "${{ env.OPENJFX_JMODS_AARCH64_HASH }} openjfx-aarch64.zip" | shasum -a256 --check
|
|
mkdir -p jmods/aarch64
|
|
unzip -j openjfx-aarch64.zip \*/javafx.base.jmod \*/javafx.controls.jmod \*/javafx.fxml.jmod \*/javafx.graphics.jmod -d jmods/aarch64
|
|
- name: Ensure major jfx version in pom and in jmods is the same
|
|
run: |
|
|
JMOD_VERSION_AMD64=$(jmod describe jmods/amd64/javafx.base.jmod | head -1)
|
|
JMOD_VERSION_AMD64=${JMOD_VERSION_AMD64#*@}
|
|
JMOD_VERSION_AMD64=${JMOD_VERSION_AMD64%%.*}
|
|
JMOD_VERSION_AARCH64=$(jmod describe jmods/aarch64/javafx.base.jmod | head -1)
|
|
JMOD_VERSION_AARCH64=${JMOD_VERSION_AARCH64#*@}
|
|
JMOD_VERSION_AARCH64=${JMOD_VERSION_AARCH64%%.*}
|
|
POM_JFX_VERSION=$(./mvnw help:evaluate "-Dexpression=javafx.version" -q -DforceStdout)
|
|
POM_JFX_VERSION=${POM_JFX_VERSION#*@}
|
|
POM_JFX_VERSION=${POM_JFX_VERSION%%.*}
|
|
|
|
if [ $POM_JFX_VERSION -ne $JMOD_VERSION_AMD64 ]; then
|
|
>&2 echo "Major JavaFX version in pom.xml (${POM_JFX_VERSION}) != amd64 jmod version (${JMOD_VERSION_AMD64})"
|
|
exit 1
|
|
fi
|
|
|
|
if [ $POM_JFX_VERSION -ne $JMOD_VERSION_AARCH64 ]; then
|
|
>&2 echo "Major JavaFX version in pom.xml (${POM_JFX_VERSION}) != aarch64 jmod version (${JMOD_VERSION_AARCH64})"
|
|
exit 1
|
|
fi
|
|
- name: Create orig.tar.gz with common/ libs/ mods/ jmods/
|
|
run: |
|
|
mkdir pkgdir
|
|
cp -r target/libs pkgdir
|
|
cp -r target/mods pkgdir
|
|
cp -r jmods pkgdir
|
|
cp -r dist/linux/common/ pkgdir
|
|
cp target/cryptomator-*.jar pkgdir/mods
|
|
tar -cJf cryptomator_${{ steps.deb-version.outputs.debVersion }}.orig.tar.xz -C pkgdir .
|
|
- name: Patch and rename pkgdir
|
|
run: |
|
|
cp -r dist/linux/debian/ pkgdir
|
|
export RFC2822_TIMESTAMP=`date --rfc-2822`
|
|
export DISABLE_UPDATE_CHECK=${{ inputs.dput }}
|
|
envsubst '${SEMVER_STR} ${VERSION_NUM} ${REVISION_NUM} ${DISABLE_UPDATE_CHECK}' < dist/linux/debian/rules > pkgdir/debian/rules
|
|
envsubst '${PPA_VERSION} ${RFC2822_TIMESTAMP}' < dist/linux/debian/changelog > pkgdir/debian/changelog
|
|
find . -name "*.jar" >> pkgdir/debian/source/include-binaries
|
|
mv pkgdir cryptomator_${{ steps.deb-version.outputs.debVersion }}
|
|
env:
|
|
SEMVER_STR: ${{ needs.get-version.outputs.semVerStr }}
|
|
VERSION_NUM: ${{ needs.get-version.outputs.semVerNum }}
|
|
REVISION_NUM: ${{ needs.get-version.outputs.revNum }}
|
|
PPA_VERSION: ${{ steps.deb-version.outputs.debVersion }}-0ppa1
|
|
- name: Prepare GPG-Agent for signing with key 615D449FE6E6A235
|
|
run: |
|
|
echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
|
|
echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --dry-run --sign README.md
|
|
env:
|
|
GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
|
|
GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
|
|
- name: debuild
|
|
run: |
|
|
(sleep 8m; gpg --batch --quiet --pinentry-mode loopback -u 615D449FE6E6A235 --dry-run --sign README.md) &
|
|
debuild -S -sa -d
|
|
debuild -b -sa -d
|
|
env:
|
|
DEBSIGN_PROGRAM: gpg --batch --pinentry-mode loopback
|
|
DEBSIGN_KEYID: 615D449FE6E6A235
|
|
working-directory: cryptomator_${{ steps.deb-version.outputs.debVersion }}
|
|
- name: Create detached GPG signatures
|
|
run: |
|
|
gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a cryptomator_*_amd64.deb
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: linux-deb-package
|
|
path: |
|
|
cryptomator_*.dsc
|
|
cryptomator_*.orig.tar.xz
|
|
cryptomator_*.debian.tar.xz
|
|
cryptomator_*_source.buildinfo
|
|
cryptomator_*_source.changes
|
|
cryptomator_*_amd64.deb
|
|
cryptomator_*.asc
|
|
- name: Publish on PPA
|
|
if: inputs.dput && inputs.ppaver != ''
|
|
run: dput ppa:sebastian-stenzel/cryptomator-beta cryptomator_*_source.changes
|
|
# If ref is a tag, also upload to GitHub Releases:
|
|
- name: Publish Debian package on GitHub Releases
|
|
if: startsWith(github.ref, 'refs/tags/') && inputs.dput
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
|
|
run: |
|
|
artifacts=$(ls | grep cryptomator*.deb)
|
|
gh release upload ${{ github.ref_name }} $artifacts
|