mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
ca57d11652
to catch issues like https://github.com/systemd/systemd/pull/22585#issuecomment-1047640155
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
---
|
|
# vi: ts=2 sw=2 et:
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
name: Unit tests
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- v[0-9]+-stable
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ matrix.run_phase }}-${{ matrix.cryptolib }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
run_phase: [GCC, GCC_ASAN_UBSAN, CLANG, CLANG_ASAN_UBSAN, CLANG_ASAN_UBSAN_NO_DEPS]
|
|
cryptolib: [auto]
|
|
include:
|
|
- run_phase: GCC
|
|
cryptolib: openssl
|
|
- run_phase: CLANG
|
|
cryptolib: gcrypt
|
|
steps:
|
|
- name: Repository checkout
|
|
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
|
- name: Install build dependencies
|
|
run: sudo -E .github/workflows/unit_tests.sh SETUP
|
|
- name: Build & test (${{ matrix.run_phase }}-${{ matrix.cryptolib }})
|
|
run: sudo -E .github/workflows/unit_tests.sh RUN_${{ matrix.run_phase }}
|
|
env:
|
|
CRYPTOLIB: ${{ matrix.cryptolib }}
|