mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 01:30:49 +02:00
7f80896033
- Skip CI for draft PRs and redundant master-push re-runs; membrowse nightly. - Add smoke test (8 configs, CFLAGS=-Werror, post-merge tree, fail-fast on conflicts). - Add wait-for-smoke composite action for downstream CI gating. - Add check-source-text + bash -n + shellcheck workflow (script in make dist). - Cache apt-get update in install-apt-deps composite on cache hit.
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
name: Multiple compilers and versions
|
|
|
|
# START OF COMMON SECTION
|
|
on:
|
|
push:
|
|
branches: [ 'release/**' ]
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
branches: [ '*' ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
# END OF COMMON SECTION
|
|
|
|
jobs:
|
|
my_matrix:
|
|
name: Compiler test
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- CC: gcc-9
|
|
CXX: g++-9
|
|
OS: ubuntu-24.04
|
|
- CC: gcc-10
|
|
CXX: g++-10
|
|
OS: ubuntu-24.04
|
|
- CC: gcc-11
|
|
CXX: g++-11
|
|
OS: ubuntu-24.04
|
|
- CC: gcc-12
|
|
CXX: g++-12
|
|
OS: ubuntu-24.04
|
|
- CC: clang-14
|
|
CXX: clang++-14
|
|
OS: ubuntu-24.04
|
|
- CC: clang-19
|
|
CXX: clang++-19
|
|
OS: ubuntu-24.04
|
|
if: ${{ (github.repository_owner == 'wolfssl') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) }}
|
|
runs-on: ${{ matrix.OS }}
|
|
# This should be a safe limit for the tests to run.
|
|
timeout-minutes: 4
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/install-apt-deps
|
|
with:
|
|
packages: ${{ matrix.CC }}
|
|
- name: Build
|
|
env:
|
|
CC: ${{ matrix.CC }}
|
|
CXX: ${{ matrix.CXX }}
|
|
run: ./autogen.sh && ./configure CFLAGS="-pedantic -Wdeclaration-after-statement -Wnull-dereference" && make && make dist
|
|
- name: Show log on errors
|
|
if: ${{ failure() }}
|
|
run: |
|
|
cat config.log
|