also run valgrind in CI
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
42
.github/workflows/main.yml
vendored
42
.github/workflows/main.yml
vendored
@@ -11,33 +11,36 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
configure_options:
|
valgrind:
|
||||||
- ""
|
- { configure: '' , make: 'check' }
|
||||||
- "--without-libxml2"
|
- { configure: '--enable-valgrind' , make: 'check-valgrind' }
|
||||||
- "--with-libxml2"
|
options:
|
||||||
- "--with-gnutls"
|
- { configure: '' }
|
||||||
- "--disable-tls"
|
- { configure: '--without-libxml2' }
|
||||||
- "--enable-cares"
|
- { configure: '--with-libxml2' }
|
||||||
- "--disable-getrandom"
|
- { configure: '--with-gnutls' }
|
||||||
|
- { configure: '--disable-tls' }
|
||||||
|
- { configure: '--enable-cares' }
|
||||||
|
- { configure: '--disable-getrandom' }
|
||||||
name: Regular Tests
|
name: Regular Tests
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y libtool pkg-config libexpat1-dev libxml2-dev libssl-dev libgnutls28-dev libc-ares-dev
|
sudo apt install -y libtool pkg-config libexpat1-dev libxml2-dev libssl-dev libgnutls28-dev libc-ares-dev valgrind
|
||||||
- name: Build the library
|
- name: Build the library
|
||||||
run: |
|
run: |
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
./configure ${{ matrix.configure_options }} CFLAGS="-Werror -g3"
|
./configure ${{ matrix.options.configure }} ${{ matrix.valgrind.configure }} CFLAGS="-Werror -g3"
|
||||||
make -j5
|
make -j$(nproc)
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
make check
|
make -j$(nproc) ${{ matrix.valgrind.make }}
|
||||||
- name: Error logs
|
- name: Error logs
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
run: |
|
run: |
|
||||||
cat test-suite.log || true
|
cat test-suite*.log || true
|
||||||
|
|
||||||
libressl-tests:
|
libressl-tests:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
@@ -47,6 +50,9 @@ jobs:
|
|||||||
- { version: "v3.4.2", continue: true }
|
- { version: "v3.4.2", continue: true }
|
||||||
- { version: "v3.1.5", continue: false }
|
- { version: "v3.1.5", continue: false }
|
||||||
- { version: "v2.1.10", continue: false }
|
- { version: "v2.1.10", continue: false }
|
||||||
|
valgrind:
|
||||||
|
- { configure: '' , make: 'check' }
|
||||||
|
- { configure: '--enable-valgrind' , make: 'check-valgrind' }
|
||||||
name: LibreSSL tests
|
name: LibreSSL tests
|
||||||
continue-on-error: ${{ matrix.libressl_versions.continue }}
|
continue-on-error: ${{ matrix.libressl_versions.continue }}
|
||||||
steps:
|
steps:
|
||||||
@@ -54,7 +60,7 @@ jobs:
|
|||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y libtool pkg-config libexpat1-dev
|
sudo apt install -y libtool pkg-config libexpat1-dev valgrind
|
||||||
- name: build&install libressl
|
- name: build&install libressl
|
||||||
env:
|
env:
|
||||||
LIBRESSL_COMMIT: ${{ matrix.libressl_versions.version }}
|
LIBRESSL_COMMIT: ${{ matrix.libressl_versions.version }}
|
||||||
@@ -63,15 +69,15 @@ jobs:
|
|||||||
- name: Build the library
|
- name: Build the library
|
||||||
run: |
|
run: |
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
./configure PKG_CONFIG_PATH="${HOME}/libressl/lib/pkgconfig" CFLAGS="-Werror -g3" --prefix="${HOME}/libressl"
|
./configure ${{ matrix.valgrind.configure }} PKG_CONFIG_PATH="${HOME}/libressl/lib/pkgconfig" CFLAGS="-Werror -g3" --prefix="${HOME}/libressl"
|
||||||
make -j5
|
make -j$(nproc)
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
make check
|
make -j$(nproc) ${{ matrix.valgrind.make }}
|
||||||
- name: Error logs
|
- name: Error logs
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
run: |
|
run: |
|
||||||
cat test-suite.log || true
|
cat test-suite*.log || true
|
||||||
|
|
||||||
release-test:
|
release-test:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|||||||
Reference in New Issue
Block a user