More various fixes (F-*) #234
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Multiple Compilers | |
| on: | |
| push: | |
| branches: [ 'master', 'main', 'release/**' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| compiler_test: | |
| name: ${{ matrix.cc }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - cc: gcc-11 | |
| - cc: gcc-12 | |
| - cc: gcc-13 | |
| - cc: clang-14 | |
| - cc: clang-15 | |
| - cc: clang-17 | |
| steps: | |
| - name: Install compiler | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ${{ matrix.cc }} | |
| - name: Checkout wolfIP | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -y autoconf automake libtool pkg-config check | |
| sudo modprobe tun | |
| - name: Clone and build wolfSSL from nightly-snapshot | |
| run: | | |
| git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl | |
| cd /tmp/wolfssl | |
| ./autogen.sh | |
| ./configure --enable-all --enable-md5 | |
| make -j$(nproc) | |
| sudo make install | |
| sudo ldconfig | |
| - name: Build wolfIP with ${{ matrix.cc }} | |
| run: | | |
| mkdir -p build/port | |
| make CC=${{ matrix.cc }} | |
| - name: Build unit tests | |
| run: make unit CC=${{ matrix.cc }} | |
| - name: Run unit tests | |
| run: ./build/test/unit | |
| - name: Build ESP unit tests | |
| run: make unit-esp CC=${{ matrix.cc }} | |
| - name: Run ESP unit tests | |
| run: ./build/test/unit-esp | |
| - name: Run standalone TTL expired test | |
| run: ./build/test-ttl-expired |