cross: Run `make check`
@@ -231,28 +231,42 @@ jobs:
- uses: actions/checkout@v3
- name: Linux setup
run: |
+ sudo dpkg --add-architecture i386
+ sudo apt-get update
sudo apt-get install \
gcc-mingw-w64 \
autoconf \
automake \
autotools-dev \
libtool \
- pkg-config
+ pkg-config \
+ wine
- name: Build OpenSSL v1.1.1
run: |
./ci/build_openssl1_cross.sh
+ - name: Build CUnit
+ run: |
+ curl -LO https://jaist.dl.sourceforge.net/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2
+ tar xf CUnit-2.1-3.tar.bz2
+ cd CUnit-2.1-3
+ ./bootstrap
+ ./configure --disable-shared --host="$HOST" --prefix="$PWD/build"
+ make -j$(nproc) install
- name: Setup environment variables
run: |
- PKG_CONFIG_PATH="$PWD/openssl/build/lib/pkgconfig"
+ PKG_CONFIG_PATH="$PWD/openssl/build/lib/pkgconfig:$PWD/CUnit-2.1-3/build/lib/pkgconfig"
echo 'PKG_CONFIG_PATH='"$PKG_CONFIG_PATH" >> $GITHUB_ENV
- name: Configure autotools
run: |
autoreconf -i && \
- ./configure --enable-werror --with-openssl --host="$HOST"
+ ./configure --enable-werror --with-openssl --with-cunit --host="$HOST"
- name: Build ngtcp2
run: |
make -j$(nproc)
+ make -j$(nproc) check TESTS=""
+ cd tests
+ wine main.exe
build-windows:
runs-on: windows-latest
