mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-21 18:16:54 -04:00
* first draft for JDK 25 migration (including comments) * fix unresolvable version in setup-java action * switch to official `openjdk-25-jdk` ubuntu package see https://packages.ubuntu.com/search?suite=jammy&arch=any&searchon=names&keywords=openjdk-25 * update jacoco to support JDK 25 * use jdk 25.0.1 for building the app # Conflicts: # .github/workflows/win-exe.yml * Use correct SHA256 value for openjfx linux arm64 * zulu version is different to temurin :rolling_eyes: * fix check-jdk-updates --------- Co-authored-by: Armin Schrenk <armin.schrenk@skymatic.de>
82 lines
2.6 KiB
YAML
82 lines
2.6 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/build.yml'
|
|
- 'pom.xml'
|
|
- 'src/**'
|
|
pull_request_target:
|
|
types: [labeled]
|
|
|
|
env:
|
|
JAVA_DIST: 'temurin'
|
|
JAVA_VERSION: 25
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
test:
|
|
name: Compile and Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
|
|
with:
|
|
distribution: ${{ env.JAVA_DIST }}
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
cache: 'maven'
|
|
- name: Cache SonarCloud packages
|
|
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
|
with:
|
|
path: ~/.sonar/cache
|
|
key: ${{ runner.os }}-sonar
|
|
restore-keys: ${{ runner.os }}-sonar
|
|
- name: Build and Test
|
|
run: >
|
|
xvfb-run
|
|
mvn -B verify
|
|
jacoco:report
|
|
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
|
|
-Pcoverage
|
|
-Dsonar.projectKey=cryptomator_cryptomator
|
|
-Dsonar.organization=cryptomator
|
|
-Dsonar.host.url=https://sonarcloud.io
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
- name: Draft a release
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
|
|
with:
|
|
draft: true
|
|
discussion_category_name: releases
|
|
token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
|
|
generate_release_notes: true
|
|
body: |-
|
|
:construction: Work in Progress
|
|
### What's New 🎉
|
|
|
|
### Bugfixes 🐛
|
|
|
|
### Other Changes 📎
|
|
|
|
---
|
|
|
|
TODO FULL CHANGELOG
|
|
|
|
📜 List of closed issues is available [here](TODO)
|
|
|
|
---
|
|
⏳ Please be patient, the builds are still [running](https://github.com/cryptomator/cryptomator/actions). New versions of Cryptomator can be found here in a few moments. ⏳
|
|
|
|
<!-- Don't forget to include the
|
|
💾 SHA-256 checksums of release artifacts:
|
|
```
|
|
```
|
|
-->
|
|
|
|
As usual, the GPG signatures can be checked using [our public key `5811 7AFA 1F85 B3EE C154 677D 615D 449F E6E6 A235`](https://gist.github.com/cryptobot/211111cf092037490275f39d408f461a).
|