diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index f35538c0961..d6d8494b85d 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -63,6 +63,18 @@ jobs: java -jar "$JAR" db archive -h java -jar "$JAR" keystore --help + - name: Upload test logs + if: always() + continue-on-error: true + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-macos26-aarch64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + overwrite: true + build-ubuntu: name: Build ubuntu24 (JDK 17 / aarch64) if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'ubuntu' }} @@ -102,6 +114,18 @@ jobs: java -jar "$JAR" db archive -h java -jar "$JAR" keystore --help + - name: Upload test logs + if: always() + continue-on-error: true + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-ubuntu24-aarch64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + overwrite: true + docker-build-rockylinux: name: Build rockylinux (JDK 8 / x86_64) if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'rockylinux' }} @@ -157,6 +181,18 @@ jobs: - name: Test with RocksDB engine run: ./gradlew :framework:testWithRocksDb --no-daemon + - name: Upload test logs + if: always() + continue-on-error: true + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-rockylinux-x86_64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + overwrite: true + docker-build-debian11: name: Build debian11 (JDK 8 / x86_64) if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'debian11' }} @@ -211,6 +247,18 @@ jobs: - name: Test with RocksDB engine run: ./gradlew :framework:testWithRocksDb --no-daemon --no-build-cache + - name: Upload test logs + if: always() + continue-on-error: true + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-debian11-x86_64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + overwrite: true + - name: Generate module coverage reports run: ./gradlew jacocoTestReport --no-daemon @@ -271,6 +319,18 @@ jobs: continue-on-error: true run: ./gradlew :framework:testWithRocksDb --no-daemon --no-build-cache + - name: Upload test logs + if: always() + continue-on-error: true + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-coverage-base-x86_64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + overwrite: true + - name: Generate module coverage reports (base) run: ./gradlew jacocoTestReport --no-daemon