diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index cce26810..2e54481a 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -12,7 +12,7 @@ jobs: working-directory: cpp env: - PACKAGES: protobuf-compiler libspdlog-dev libpcap-dev libprotobuf-dev libgmock-dev + PACKAGES: openjdk-17-jre-headless protobuf-compiler libspdlog-dev libpcap-dev libprotobuf-dev libgmock-dev BUILD_WRAPPER_OUT_DIR: "$HOME/.build_wrapper_out" SONAR_SERVER_URL: "https://sonarcloud.io" SONAR_PROJECT_KEY: "uweseimet_scsi2pi" @@ -28,13 +28,6 @@ jobs: - name: Install additional packages run: sudo apt install --yes ${{ env.PACKAGES }} - - name: Set up Java - uses: actions/setup-java@v4 - with: - java-version: 17 - java-package: jre - distribution: temurin - - name: Set up Python for gcovr uses: actions/setup-python@v4 with: @@ -47,8 +40,6 @@ jobs: uses: SonarSource/sonarcloud-github-c-cpp@v1 - name: Run build-wrapper - env: - PATH: $JAVA_HOME/bin:$PATH run: | build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make -j $(nproc) coverage DEBUG=1