Bump the maven-build-plugins group across 1 directory with 11 updates #684
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| pull_request_target: | |
| types: [labeled] | |
| env: | |
| JAVA_DIST: 'temurin' | |
| JAVA_VERSION: '24' | |
| jobs: | |
| linux: | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| arch: x86_64 | |
| - os: ubuntu-24.04-arm | |
| arch: aarch64 | |
| runs-on: ${{ matrix.os }} | |
| name: Test jfuse-linux-${{ matrix.arch }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JAVA_DIST }} | |
| cache: 'maven' | |
| - name: Setup fuse | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install fuse3 libfuse3-dev | |
| - name: Maven build | |
| run: mvn -B verify -Dfuse.lib.path="/usr/lib/${{ matrix.arch }}-linux-gnu/libfuse3.so.3" --no-transfer-progress | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-linux-${{ matrix.arch }} | |
| path: jfuse-tests/target/site/jacoco-aggregate/jacoco.xml | |
| retention-days: 3 | |
| mac: | |
| name: Test jfuse-mac | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JAVA_DIST }} | |
| cache: 'maven' | |
| - name: Setup fuse | |
| run: | | |
| brew tap macos-fuse-t/homebrew-cask | |
| brew update | |
| brew install fuse-t | |
| - name: Maven build | |
| run: mvn -B verify -Dfuse.lib.path="/usr/local/lib/libfuse-t.dylib" --no-transfer-progress | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-mac | |
| path: jfuse-tests/target/site/jacoco-aggregate/jacoco.xml | |
| retention-days: 3 | |
| win: | |
| name: Test jfuse-win | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JAVA_DIST }} | |
| cache: 'maven' | |
| - name: Setup fuse | |
| run: choco install winfsp --version 2.0.23075 -y | |
| - name: Maven build | |
| shell: bash # surprise, running maven in pwsh is crappy, see https://stackoverflow.com/q/6347985/4014509 | |
| run: mvn -B verify -Dfuse.lib.path="C:\Program Files (x86)\WinFsp\bin\winfsp-x64.dll" --no-transfer-progress | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-win | |
| path: jfuse-tests/target/site/jacoco-aggregate/jacoco.xml | |
| retention-days: 3 | |
| sonarcloud: | |
| name: Run SonarCloud Analysis | |
| needs: [linux, mac, win] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JAVA_DIST }} | |
| cache: 'maven' | |
| - name: Cache SonarCloud packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.sonar/cache | |
| key: ${{ runner.os }}-sonar | |
| restore-keys: ${{ runner.os }}-sonar | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: coverage-linux-x86_64 | |
| path: coverage/linux-x86_64 | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: coverage-linux-aarch64 | |
| path: coverage/linux-aarch64 | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: coverage-mac | |
| path: coverage/mac | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: coverage-win | |
| path: coverage/win | |
| - name: Analyze | |
| run: > | |
| mvn -B compile -DskipTests | |
| org.sonarsource.scanner.maven:sonar-maven-plugin:sonar | |
| -Dsonar.projectKey=cryptomator_jfuse | |
| -Dsonar.coverage.jacoco.xmlReportPaths=${GITHUB_WORKSPACE}/coverage/**/jacoco.xml | |
| -Dsonar.organization=cryptomator | |
| -Dsonar.host.url=https://sonarcloud.io | |
| --no-transfer-progress | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| release: | |
| needs: [ sonarcloud ] | |
| if: startsWith(github.ref, 'refs/tags/') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create Release | |
| uses: actions/create-release@v1 #REMARK: action/create-release is unmaintend | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} # release as "cryptobot" | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: Release ${{ github.ref }} | |
| prerelease: true |