2020-06-10 14:41:28 +03:00
---
# vi: ts=2 sw=2 et:
2021-10-01 13:10:22 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2020-06-10 14:41:28 +03:00
#
name : Build test
on :
pull_request :
paths :
- '**/meson.build'
- '.github/workflows/**'
- 'meson_options.txt'
- 'src/**'
- 'test/fuzz/**'
2021-11-14 01:34:04 +03:00
permissions :
contents : read
2021-11-13 17:40:20 +03:00
2020-06-10 14:41:28 +03:00
jobs :
build :
2020-10-21 17:17:29 +03:00
runs-on : ubuntu-20.04
2021-11-10 18:45:12 +03:00
concurrency :
2021-12-24 13:50:37 +03:00
group : ${{ github.workflow }}-${{ toJSON(matrix.env) }}-${{ github.ref }}
2021-11-10 18:45:12 +03:00
cancel-in-progress : true
2020-06-10 14:41:28 +03:00
strategy :
fail-fast : false
matrix :
env :
2021-12-24 13:50:37 +03:00
- { COMPILER : "gcc" , COMPILER_VERSION : "10" , LINKER : "bfd" , CRYPTOLIB : "gcrypt" }
- { COMPILER : "gcc" , COMPILER_VERSION : "11" , LINKER : "gold" , CRYPTOLIB : "openssl" }
- { COMPILER : "clang" , COMPILER_VERSION : "11" , LINKER : "bfd" , CRYPTOLIB : "auto" }
- { COMPILER : "clang" , COMPILER_VERSION : "12" , LINKER : "gold" , CRYPTOLIB : "gcrypt" }
- { COMPILER : "clang" , COMPILER_VERSION : "13" , LINKER : "lld" , CRYPTOLIB : "openssl" }
2020-06-10 14:41:28 +03:00
env : ${{ matrix.env }}
steps :
- name : Repository checkout
2021-11-13 12:36:24 +03:00
uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
2021-12-24 13:50:37 +03:00
- name : ${{ format('Build check ({0}-{1}-{2}-{3})', env.COMPILER, env.COMPILER_VERSION, env.LINKER, env.CRYPTOLIB) }}
2021-01-25 17:45:36 +03:00
run : sudo -E .github/workflows/build_test.sh