build.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. name: Build
  2. on:
  3. push:
  4. pull_request_target:
  5. types: [labeled]
  6. env:
  7. JAVA_DIST: 'temurin'
  8. JAVA_VERSION: 23
  9. defaults:
  10. run:
  11. shell: bash
  12. jobs:
  13. test:
  14. name: Compile and Test
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v4
  18. - uses: actions/setup-java@v4
  19. with:
  20. distribution: ${{ env.JAVA_DIST }}
  21. java-version: ${{ env.JAVA_VERSION }}
  22. cache: 'maven'
  23. - name: Cache SonarCloud packages
  24. uses: actions/cache@v4
  25. with:
  26. path: ~/.sonar/cache
  27. key: ${{ runner.os }}-sonar
  28. restore-keys: ${{ runner.os }}-sonar
  29. - name: Build and Test
  30. run: >
  31. xvfb-run
  32. mvn -B verify -Djavafx.platform=linux
  33. jacoco:report
  34. org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
  35. -Pcoverage
  36. -Dsonar.projectKey=cryptomator_cryptomator
  37. -Dsonar.organization=cryptomator
  38. -Dsonar.host.url=https://sonarcloud.io
  39. env:
  40. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
  41. SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
  42. - name: Draft a release
  43. if: startsWith(github.ref, 'refs/tags/')
  44. uses: softprops/action-gh-release@v2
  45. with:
  46. draft: true
  47. discussion_category_name: releases
  48. token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
  49. generate_release_notes: true
  50. body: |-
  51. :construction: Work in Progress
  52. ### What's New 🎉
  53. ### Bugfixes 🐛
  54. ### Other Changes 📎
  55. ---
  56. TODO FULL CHANGELOG
  57. 📜 List of closed issues is available [here](TODO)
  58. ---
  59. ⏳ 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. ⏳
  60. <!-- Don't forget to include the
  61. 💾 SHA-256 checksums of release artifacts:
  62. ```
  63. ```
  64. -->
  65. 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).