GitHub action is stuck during build while working before

Hi,

I have been using GitHub actions for quite some time and always very happy how easy it is and how well it works. This morning however it got stuck during the build phase. I initially thought it was some kind of temp-issue duo some maintenance however the issue is still present. I don’t have any clue what the root cause might be. I also have executed a job that was passing before but when I restarted it it freezes.

See here for the full logs of the run: Updated video link · Hakky54/mutual-tls-ssl@58bd70d · GitHub

See here for one of the jobs describtions:

name: Build

on: [push, pull_request]

jobs:

  one-way-authentication:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1

      - name: Set up JDK 11
        uses: actions/setup-java@v1
        with:
          java-version: 11

      - name: Cache dependencies
        uses: actions/cache@v1
        with:
          path: ~/.m2/repository
          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
          restore-keys: |
            ${{ runner.os }}-maven-
      - name: Build and test
        run: mvn clean install -P with-one-way-authentication --no-transfer-progress

Build overview:

Any idea what the cause could be, maybe memory issues?

1 Like

I have found the solution. I have upgraded actions/setup-java@v1 and adjusted the configuration. See here:

from

      - name: Set up JDK 11
        uses: actions/setup-java@v1
        with:
          java-version: 11

to:

      - name: Set up JDK 11
        uses: actions/setup-java@v2
        with:
          distribution: 'adopt'
          java-version: '11'
1 Like