mirror of https://github.com/wolfSSL/wolfssl.git
Multi compiler test (#5991)
* First attempt with GCC only * Make the test run on every push temporarily Also clean up the description of the workflow * Fix invalid job name * Missing hunks added * Try out matrix actions * Fix missing 'runs-on' * Only needs to run on Ubuntu * Use local installations of gcc/clang instead of containers * Explicitly list out compilers to test * Clean up names and concurrency group * Only need to run on PRs and important branches Co-authored-by: Andras Fekete <andras@wolfssl.com>pull/5927/head
parent
f6ecc6ce4c
commit
f0c9f5f9f0
|
@ -0,0 +1,39 @@
|
|||
name: Multiple compilers and versions
|
||||
concurrency:
|
||||
group: ${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ 'master', 'main', 'release/**' ]
|
||||
pull_request:
|
||||
branches: [ '*' ]
|
||||
|
||||
jobs:
|
||||
my_matrix:
|
||||
name: Compiler test
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- CC: gcc-9
|
||||
CXX: g++-9
|
||||
- CC: gcc-10
|
||||
CXX: g++-10
|
||||
- CC: gcc-11
|
||||
CXX: g++-11
|
||||
- CC: gcc-12
|
||||
CXX: g++-12
|
||||
- CC: clang-12
|
||||
CXX: clang++-12
|
||||
- CC: clang-13
|
||||
CXX: clang++-13
|
||||
- CC: clang-14
|
||||
CXX: clang++-14
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build
|
||||
env:
|
||||
CC: ${{ matrix.CC }}
|
||||
CXX: ${{ matrix.CXX }}
|
||||
run: ./autogen.sh && ./configure && make && make dist
|
Loading…
Reference in New Issue