openssl/.github/workflows/compiler-zoo.yml
Sam James 6332f4c4a2 CI: add GCC 11
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18639)
2022-06-27 11:43:33 +10:00

69 lines
1.9 KiB
YAML

# Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
name: Compiler Zoo CI
on: [push]
jobs:
compiler:
strategy:
fail-fast: false
matrix:
zoo: [
{
cc: gcc-7
}, {
cc: gcc-8
}, {
cc: gcc-9
}, {
cc: gcc-10
}, {
cc: gcc-11
}, {
cc: clang-6.0
}, {
cc: clang-7
}, {
cc: clang-8
}, {
cc: clang-9
}, {
cc: clang-10
}, {
cc: clang-11
}, {
cc: clang-12
}
]
runs-on: ubuntu-latest
steps:
- name: install packages
run: |
echo "deb https://ppa.launchpadcontent.net/ubuntu-toolchain-r/ppa/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/gcc.list
echo "deb-src https://ppa.launchpadcontent.net/ubuntu-toolchain-r/ppa/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/gcc.list
# From https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/ppa
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 60C317803A41BA51845E371A1E9377A2BA9EF27F
sudo apt-get update
sudo apt-get -yq --force-yes install ${{ matrix.zoo.cc }}
- uses: actions/checkout@v2
- name: config
run: |
CC=${{ matrix.zoo.cc }} ./config --banner=Configured no-shared \
-Wall -Werror enable-fips --strict-warnings
- name: config dump
run: ./configdata.pm --dump
- name: make
run: make -s -j4
- name: make test
run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}