name: unit-tests
on: [push, pull_request]
jobs:
  gcc:
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v2
        with:
          # need this to also fetch tags
          fetch-depth: 0

      #- name: interactive SSH debug session
      #  uses: mxschmitt/action-tmate@v3

      - name: Run unit-tests container
        run: containers/unit-tests/start

  clang:
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v2
        with:
          # need this to also fetch tags
          fetch-depth: 0

      - name: Run unit-tests container
        run: containers/unit-tests/start CC=clang

  i386:
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v2
        with:
          # need this to also fetch tags
          fetch-depth: 0

      - name: Run unit-tests container
        run: containers/unit-tests/start :i386

name: unit-tests
on: [push, pull_request]
jobs:
  gcc:
    runs-on: ubuntu-latest
    timeout-minutes: 60
    steps:
      - name: Clone repository
        uses: actions/checkout@v2
        with:
          # need this to also fetch tags
          fetch-depth: 0

      #- name: interactive SSH debug session
      #  uses: mxschmitt/action-tmate@v3

      - name: Run unit-tests container
        run: containers/unit-tests/start

  clang:
    timeout-minutes: 60
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v2
        with:
          # need this to also fetch tags
          fetch-depth: 0

      - name: Run unit-tests container
        run: containers/unit-tests/start CC=clang

  i386:
    timeout-minutes: 60
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v2
        with:
          # need this to also fetch tags
          fetch-depth: 0

      - name: Run unit-tests container
        run: containers/unit-tests/start :i386

Reduce unit-test timeout to 1 hour
workflows: Reduce unit-test timeout to 1 hour

The default is 6 hours, which causes too long hangs.

Closes #14813