diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 601ffe80..2d9cb3ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,8 +9,8 @@ jobs: runs-on: ubuntu-latest if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: java-version: 19 distribution: 'zulu' @@ -20,8 +20,8 @@ jobs: sudo apt-get update sudo apt-get install fuse3 libfuse3-dev - name: Maven build - run: mvn -B verify -Plinux-amd64 - - uses: actions/upload-artifact@v2 + run: mvn -B verify + - uses: actions/upload-artifact@v3 with: name: coverage-linux-amd64 path: jfuse-tests/target/site/jacoco-aggregate/jacoco.xml @@ -32,8 +32,8 @@ jobs: runs-on: macos-10.15 if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: java-version: 19 distribution: 'zulu' @@ -41,20 +41,20 @@ jobs: - name: Setup fuse run: brew install macfuse - name: Maven build - run: mvn -B verify -Pmac - - uses: actions/upload-artifact@v2 + run: mvn -B verify + - uses: actions/upload-artifact@v3 with: name: coverage-mac path: jfuse-tests/target/site/jacoco-aggregate/jacoco.xml retention-days: 3 - win-amd64: - name: Test jfuse-win-amd64 + win: + name: Test jfuse-win runs-on: windows-latest if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: java-version: 19 distribution: 'zulu' @@ -62,49 +62,48 @@ jobs: - name: Setup fuse run: choco install winfsp --version 1.10.22006 -y - name: Maven build - run: mvn -B verify -Pwin-amd64 - - uses: actions/upload-artifact@v2 + run: mvn -B verify + - uses: actions/upload-artifact@v3 with: - name: coverage-win-amd64 + name: coverage-win path: jfuse-tests/target/site/jacoco-aggregate/jacoco.xml retention-days: 3 sonarcloud: name: Run SonarCloud Analysis - needs: [linux-amd64, mac, win-amd64] + needs: [linux-amd64, mac, win] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v3 with: java-version: 19 distribution: 'zulu' cache: 'maven' - name: Cache SonarCloud packages - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: coverage-linux-amd64 path: coverage/linux-amd64 - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: name: coverage-mac path: coverage/mac - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v3 with: - name: coverage-win-amd64 - path: coverage/win-amd64 + name: coverage-win + path: coverage/win - name: Analyze run: > mvn -B compile -DskipTests org.sonarsource.scanner.maven:sonar-maven-plugin:sonar - -Plinux-amd64,linux-aarch64,mac,win-amd64 -Dsonar.projectKey=cryptomator_jfuse -Dsonar.coverage.jacoco.xmlReportPaths=${GITHUB_WORKSPACE}/coverage/**/jacoco.xml -Dsonar.organization=cryptomator @@ -119,7 +118,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Create Release - uses: actions/create-release@v1 + uses: actions/create-release@v1 #REMARK: action/create-release is unmaintend env: GITHUB_TOKEN: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} # release as "cryptobot" with: diff --git a/.github/workflows/publish-central.yml b/.github/workflows/publish-central.yml index 23fc7808..c3f28206 100644 --- a/.github/workflows/publish-central.yml +++ b/.github/workflows/publish-central.yml @@ -10,10 +10,10 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: "refs/tags/${{ github.event.inputs.tag }}" - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v3 with: java-version: 19 distribution: 'zulu' @@ -26,7 +26,7 @@ jobs: - name: Enforce project version ${{ github.event.inputs.tag }} run: mvn versions:set -B -DnewVersion=${{ github.event.inputs.tag }} - name: Deploy - run: mvn deploy -B -DskipTests -Psign,deploy-central,linux-amd64,linux-aarch64,mac,win-amd64 --no-transfer-progress + run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} diff --git a/.github/workflows/publish-github.yml b/.github/workflows/publish-github.yml index 55fc586c..b233f6ce 100644 --- a/.github/workflows/publish-github.yml +++ b/.github/workflows/publish-github.yml @@ -7,8 +7,8 @@ jobs: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') # only allow publishing tagged versions steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: java-version: 19 distribution: 'zulu' @@ -18,7 +18,7 @@ jobs: - name: Enforce project version ${{ github.event.release.tag_name }} run: mvn versions:set -B -DnewVersion=${{ github.event.release.tag_name }} - name: Deploy - run: mvn deploy -B -DskipTests -Psign,deploy-github,linux-amd64,linux-aarch64,mac,win-amd64 --no-transfer-progress + run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} diff --git a/.idea/runConfigurations/RandomFileSystem.xml b/.idea/runConfigurations/RandomFileSystem.xml index 5e0e8100..6ebe82bc 100644 --- a/.idea/runConfigurations/RandomFileSystem.xml +++ b/.idea/runConfigurations/RandomFileSystem.xml @@ -1,8 +1,9 @@ - +