mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Merge pull request #1414 from azat/build/deprecate-autotools
Deprecate autotools build
This commit is contained in:
commit
28c28f075b
308
.github/workflows/build.yml
vendored
308
.github/workflows/build.yml
vendored
@ -9,23 +9,21 @@ on:
|
|||||||
- opened
|
- opened
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
push:
|
paths-ignore:
|
||||||
paths-ignore:
|
- '**.md'
|
||||||
- '**.md'
|
- '.mailmap'
|
||||||
- '.mailmap'
|
- 'ChangeLog*'
|
||||||
- 'ChangeLog*'
|
- 'whatsnew*'
|
||||||
- 'whatsnew*'
|
- 'LICENSE'
|
||||||
- 'LICENSE'
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
push:
|
paths-ignore:
|
||||||
paths-ignore:
|
- '**.md'
|
||||||
- '**.md'
|
- '.mailmap'
|
||||||
- '.mailmap'
|
- 'ChangeLog*'
|
||||||
- 'ChangeLog*'
|
- 'whatsnew*'
|
||||||
- 'whatsnew*'
|
- 'LICENSE'
|
||||||
- 'LICENSE'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-cmake-job:
|
linux-cmake-job:
|
||||||
@ -58,14 +56,14 @@ jobs:
|
|||||||
EVENT_MATRIX: UBSAN
|
EVENT_MATRIX: UBSAN
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-v3
|
key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-v3
|
||||||
- name: Cache Dist Build
|
- name: Cache Dist Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
key: ${{ matrix.os }}-cmake-dist-${{ matrix.EVENT_MATRIX }}-v3
|
key: ${{ matrix.os }}-cmake-dist-${{ matrix.EVENT_MATRIX }}-v3
|
||||||
@ -172,31 +170,17 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-18.04]
|
os: [ubuntu-18.04]
|
||||||
EVENT_MATRIX:
|
|
||||||
- DIST
|
|
||||||
- NONE
|
|
||||||
- NO_SSL
|
|
||||||
- DISABLE_OPENSSL
|
|
||||||
- DISABLE_THREAD_SUPPORT
|
|
||||||
- DISABLE_DEBUG_MODE
|
|
||||||
- DISABLE_MM_REPLACEMENT
|
|
||||||
- COMPILER_CLANG
|
|
||||||
include:
|
include:
|
||||||
|
# openssl 3.0
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
EVENT_MATRIX: OPENSSL_3
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
|
||||||
path: build
|
|
||||||
key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v3
|
|
||||||
- name: Cache Dist Build
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
key: ${{ matrix.os }}-autotools-dist-${{ matrix.EVENT_MATRIX }}-v3
|
key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v3
|
||||||
|
|
||||||
- name: Install Depends
|
- name: Install Depends
|
||||||
run: |
|
run: |
|
||||||
@ -206,46 +190,23 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_OPENSSL" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-openssl"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "NO_SSL" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-openssl --disable-mbedtls"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_THREAD_SUPPORT" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-thread-support"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_DEBUG_MODE" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-debug-mode"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_MM_REPLACEMENT" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-malloc-replacement"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "COMPILER_CLANG" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS=""
|
|
||||||
export CC=clang
|
|
||||||
|
|
||||||
else
|
|
||||||
EVENT_CONFIGURE_OPTIONS=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
|
|
||||||
if [ "${{ matrix.EVENT_MATRIX }}" == "DIST" ]; then
|
# dist archive
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
cd dist
|
cd dist
|
||||||
rm -fr *.tar.gz
|
rm -fr *.tar.gz
|
||||||
../configure $EVENT_CONFIGURE_OPTIONS
|
../configure
|
||||||
make dist
|
make dist
|
||||||
archive=$(echo *.tar.gz)
|
archive=$(echo *.tar.gz)
|
||||||
tar -vxf $archive
|
tar -vxf $archive
|
||||||
cd $(basename $archive .tar.gz)
|
cd $(basename $archive .tar.gz)
|
||||||
fi
|
# \dist archive
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
echo [configure]: ../configure --enable-gcc-warnings $EVENT_CONFIGURE_OPTIONS
|
echo [configure]: ../configure --enable-gcc-warnings
|
||||||
../configure --enable-gcc-warnings $EVENT_CONFIGURE_OPTIONS
|
../configure --enable-gcc-warnings
|
||||||
make
|
make
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: nick-fields/retry@v2
|
uses: nick-fields/retry@v2
|
||||||
@ -255,21 +216,16 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
command: |
|
command: |
|
||||||
JOBS=20
|
JOBS=20
|
||||||
if [ "${{ matrix.EVENT_MATRIX }}" == "DIST" ]; then
|
|
||||||
cd dist
|
cd dist
|
||||||
archive=$(echo *.tar.gz)
|
archive=$(echo *.tar.gz)
|
||||||
cd $(basename $archive .tar.gz)
|
cd $(basename $archive .tar.gz)
|
||||||
fi
|
|
||||||
cd build
|
cd build
|
||||||
make -j $JOBS verify
|
make -j $JOBS verify
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: failure() && matrix.EVENT_MATRIX != 'DIST'
|
if: failure()
|
||||||
with:
|
|
||||||
name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-build
|
|
||||||
path: build
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
if: failure() && matrix.EVENT_MATRIX == 'DIST'
|
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-dist
|
name: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-dist
|
||||||
path: dist
|
path: dist
|
||||||
@ -295,10 +251,10 @@ jobs:
|
|||||||
- TEST_EXPORT_STATIC
|
- TEST_EXPORT_STATIC
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-v4
|
key: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-v4
|
||||||
@ -422,22 +378,14 @@ jobs:
|
|||||||
if: "!contains(github.event.head_commit.message, 'ci/mingw skip') && !contains(github.event.head_commit.message, 'ci/mingw/autotools skip')"
|
if: "!contains(github.event.head_commit.message, 'ci/mingw skip') && !contains(github.event.head_commit.message, 'ci/mingw/autotools skip')"
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
|
||||||
EVENT_MATRIX:
|
|
||||||
- none
|
|
||||||
- no-ssl
|
|
||||||
- disable-openssl
|
|
||||||
- disable-thread-support
|
|
||||||
- disable-debug-mode
|
|
||||||
- disable-malloc-replacement
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: mingw-autotools-${{ matrix.EVENT_MATRIX }}-v5
|
key: mingw-autotools-v5
|
||||||
- name: Setup MSYS2
|
- name: Setup MSYS2
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
@ -448,13 +396,6 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$env:EVENT_CONFIGURE_OPTIONS=""
|
|
||||||
if ( "${{ matrix.EVENT_MATRIX }}" -eq "no-ssl" ) {
|
|
||||||
$env:EVENT_CONFIGURE_OPTIONS="--disable-openssl --disable-mbedtls"
|
|
||||||
}
|
|
||||||
elseif ( "${{ matrix.EVENT_MATRIX }}" -ne "none" ) {
|
|
||||||
$env:EVENT_CONFIGURE_OPTIONS="--${{ matrix.EVENT_MATRIX }}"
|
|
||||||
}
|
|
||||||
$env:EVENT_BUILD_PARALLEL=10
|
$env:EVENT_BUILD_PARALLEL=10
|
||||||
|
|
||||||
$script='
|
$script='
|
||||||
@ -464,7 +405,7 @@ jobs:
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
[[ $? -ne 0 ]] && exit 1
|
[[ $? -ne 0 ]] && exit 1
|
||||||
LDFLAGS="-L/mingw64/lib" CFLAGS="-I/mingw64/include" ../configure $EVENT_CONFIGURE_OPTIONS 2>&1
|
LDFLAGS="-L/mingw64/lib" CFLAGS="-I/mingw64/include" ../configure 2>&1
|
||||||
[[ $? -ne 0 ]] && exit 1
|
[[ $? -ne 0 ]] && exit 1
|
||||||
make -j $EVENT_BUILD_PARALLEL 2>&1
|
make -j $EVENT_BUILD_PARALLEL 2>&1
|
||||||
[[ $? -ne 0 ]] && exit 1
|
[[ $? -ne 0 ]] && exit 1
|
||||||
@ -510,9 +451,9 @@ jobs:
|
|||||||
- DISABLE_MM_REPLACEMENT
|
- DISABLE_MM_REPLACEMENT
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: mingw-cmake-${{ matrix.EVENT_MATRIX }}-v4
|
key: mingw-cmake-${{ matrix.EVENT_MATRIX }}-v4
|
||||||
@ -527,12 +468,12 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$EVENT_CONFIGURE_OPTIONS=""
|
$EVENT_CMAKE_OPTIONS=""
|
||||||
if ( "${{ matrix.EVENT_MATRIX }}" -ne "NO_SSL" ) {
|
if ( "${{ matrix.EVENT_MATRIX }}" -ne "NO_SSL" ) {
|
||||||
$EVENT_CONFIGURE_OPTIONS="-DEVENT__DISABLE_OPENSSL=ON -DEVENT__DISABLE_MBEDTLS=ON"
|
$EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_OPENSSL=ON -DEVENT__DISABLE_MBEDTLS=ON"
|
||||||
}
|
}
|
||||||
elseif ( "${{ matrix.EVENT_MATRIX }}" -ne "NONE" ) {
|
elseif ( "${{ matrix.EVENT_MATRIX }}" -ne "NONE" ) {
|
||||||
$EVENT_CONFIGURE_OPTIONS="-DEVENT__${{ matrix.EVENT_MATRIX }}=ON"
|
$EVENT_CMAKE_OPTIONS="-DEVENT__${{ matrix.EVENT_MATRIX }}=ON"
|
||||||
}
|
}
|
||||||
$env:PATH="D:\a\_temp\msys64\mingw64\bin;D:\a\_temp\msys64\usr\bin;$env:PATH"
|
$env:PATH="D:\a\_temp\msys64\mingw64\bin;D:\a\_temp\msys64\usr\bin;$env:PATH"
|
||||||
mkdir build -ea 0
|
mkdir build -ea 0
|
||||||
@ -541,7 +482,7 @@ jobs:
|
|||||||
{
|
{
|
||||||
$errcode=0
|
$errcode=0
|
||||||
try {
|
try {
|
||||||
cmake .. -G "MSYS Makefiles" $EVENT_CONFIGURE_OPTIONS -DCMAKE_C_FLAGS=-w
|
cmake .. -G "MSYS Makefiles" $EVENT_CMAKE_OPTIONS -DCMAKE_C_FLAGS=-w
|
||||||
$errcode=$LastExitCode
|
$errcode=$LastExitCode
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
@ -596,13 +537,13 @@ jobs:
|
|||||||
- TEST_EXPORT_SHARED
|
- TEST_EXPORT_SHARED
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: macos-10.15-cmake-${{ matrix.EVENT_MATRIX }}-v3
|
key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-v3
|
||||||
|
|
||||||
- name: Install Depends
|
- name: Install Depends
|
||||||
run: brew install mbedtls@2
|
run: brew install mbedtls@2
|
||||||
@ -679,22 +620,15 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest]
|
os: [macos-latest]
|
||||||
EVENT_MATRIX:
|
|
||||||
- NONE
|
|
||||||
- NO_SSL
|
|
||||||
- DISABLE_OPENSSL
|
|
||||||
- DISABLE_THREAD_SUPPORT
|
|
||||||
- DISABLE_DEBUG_MODE
|
|
||||||
- DISABLE_MM_REPLACEMENT
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v3
|
key: ${{ matrix.os }}-autotools-v3
|
||||||
|
|
||||||
- name: Install Depends
|
- name: Install Depends
|
||||||
run: brew install autoconf automake libtool pkg-config mbedtls@2
|
run: brew install autoconf automake libtool pkg-config mbedtls@2
|
||||||
@ -705,30 +639,11 @@ jobs:
|
|||||||
export CPPFLAGS="-I/usr/local/opt/mbedtls@2/include"
|
export CPPFLAGS="-I/usr/local/opt/mbedtls@2/include"
|
||||||
export LDFLAGS="-L/usr/local/opt/mbedtls@2/lib"
|
export LDFLAGS="-L/usr/local/opt/mbedtls@2/lib"
|
||||||
|
|
||||||
if [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_OPENSSL" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-openssl"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "NO_SSL" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-openssl --disable-mbedtls"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_THREAD_SUPPORT" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-thread-support"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_DEBUG_MODE" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-debug-mode"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_MM_REPLACEMENT" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-malloc-replacement"
|
|
||||||
|
|
||||||
else
|
|
||||||
EVENT_CONFIGURE_OPTIONS=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
echo [configure]: ../configure $EVENT_CONFIGURE_OPTIONS
|
echo [configure]: ../configure
|
||||||
../configure $EVENT_CONFIGURE_OPTIONS
|
../configure
|
||||||
make
|
make
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
@ -768,10 +683,10 @@ jobs:
|
|||||||
- TEST_EXPORT_SHARED
|
- TEST_EXPORT_SHARED
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: freebsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-v1
|
key: freebsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-v1
|
||||||
@ -850,25 +765,16 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# NOTE: 13.0 has some issues:
|
release: ["13.1"]
|
||||||
# ld-elf.so.1: /lib/libc.so.7: version FBSD_1.7 required by /usr/local/lib/libpython3.9.so.1.0 not found
|
|
||||||
release: ["12.3", "13.1"]
|
|
||||||
EVENT_MATRIX:
|
|
||||||
- NONE
|
|
||||||
- NO_SSL
|
|
||||||
- DISABLE_OPENSSL
|
|
||||||
- DISABLE_THREAD_SUPPORT
|
|
||||||
- DISABLE_DEBUG_MODE
|
|
||||||
- DISABLE_MM_REPLACEMENT
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: freebsd-${{ matrix.release }}-autotools-${{ matrix.EVENT_MATRIX }}-v1
|
key: freebsd-${{ matrix.release }}-autotools-v1
|
||||||
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
@ -879,30 +785,11 @@ jobs:
|
|||||||
pkg install -y mbedtls python3 autoconf automake libtool pkgconf
|
pkg install -y mbedtls python3 autoconf automake libtool pkgconf
|
||||||
usesh: true
|
usesh: true
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_OPENSSL" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-openssl"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "NO_SSL" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-openssl --disable-mbedtls"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_THREAD_SUPPORT" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-thread-support"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_DEBUG_MODE" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-debug-mode"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_MM_REPLACEMENT" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-malloc-replacement"
|
|
||||||
|
|
||||||
else
|
|
||||||
EVENT_CONFIGURE_OPTIONS=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
echo [configure]: ../configure $EVENT_CONFIGURE_OPTIONS
|
echo [configure]: ../configure
|
||||||
../configure $EVENT_CONFIGURE_OPTIONS
|
../configure
|
||||||
make
|
make
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
@ -951,10 +838,10 @@ jobs:
|
|||||||
# - TEST_EXPORT_SHARED
|
# - TEST_EXPORT_SHARED
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: openbsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-v1
|
key: openbsd-${{ matrix.release }}-cmake-${{ matrix.EVENT_MATRIX }}-v1
|
||||||
@ -969,30 +856,30 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_OPENSSL" ]; then
|
if [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_OPENSSL" ]; then
|
||||||
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_OPENSSL=ON"
|
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_OPENSSL=ON"
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "NO_SSL" ]; then
|
elif [ "${{ matrix.EVENT_MATRIX }}" == "NO_SSL" ]; then
|
||||||
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_OPENSSL=ON -DEVENT__DISABLE_MBEDTLS=ON"
|
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_OPENSSL=ON -DEVENT__DISABLE_MBEDTLS=ON"
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_THREAD_SUPPORT" ]; then
|
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_THREAD_SUPPORT" ]; then
|
||||||
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_THREAD_SUPPORT=ON"
|
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_THREAD_SUPPORT=ON"
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_DEBUG_MODE" ]; then
|
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_DEBUG_MODE" ]; then
|
||||||
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_DEBUG_MODE=ON"
|
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_DEBUG_MODE=ON"
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_MM_REPLACEMENT" ]; then
|
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_MM_REPLACEMENT" ]; then
|
||||||
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_MM_REPLACEMENT=ON"
|
EVENT_CMAKE_OPTIONS="-DEVENT__DISABLE_MM_REPLACEMENT=ON"
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "TEST_EXPORT_STATIC" ]; then
|
elif [ "${{ matrix.EVENT_MATRIX }}" == "TEST_EXPORT_STATIC" ]; then
|
||||||
EVENT_CMAKE_OPTIONS="-DEVENT__LIBRARY_TYPE=STATIC -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON"
|
EVENT_CMAKE_OPTIONS="-DEVENT__LIBRARY_TYPE=STATIC -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON"
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "TEST_EXPORT_SHARED" ]; then
|
elif [ "${{ matrix.EVENT_MATRIX }}" == "TEST_EXPORT_SHARED" ]; then
|
||||||
EVENT_CMAKE_OPTIONS="-DEVENT__LIBRARY_TYPE=SHARED -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON"
|
EVENT_CMAKE_OPTIONS="-DEVENT__LIBRARY_TYPE=SHARED -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON"
|
||||||
|
|
||||||
else
|
else
|
||||||
EVENT_CMAKE_OPTIONS=""
|
EVENT_CMAKE_OPTIONS=""
|
||||||
fi
|
fi
|
||||||
EVENT_CMAKE_OPTIONS="$EVENT_CMAKE_OPTIONS -DMBEDTLS_ROOT_DIR=/usr/local/opt/mbedtls@2"
|
EVENT_CMAKE_OPTIONS="$EVENT_CMAKE_OPTIONS -DMBEDTLS_ROOT_DIR=/usr/local/opt/mbedtls@2"
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
echo [cmake]: cmake .. $EVENT_CMAKE_OPTIONS
|
echo [cmake]: cmake .. $EVENT_CMAKE_OPTIONS
|
||||||
@ -1033,28 +920,16 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
release: [
|
release: ["7.1"]
|
||||||
# 6.9 has some issues with autoconf/autotools [1].
|
|
||||||
# [1]: https://github.com/libevent/libevent/pull/1326#issuecomment-1229531718
|
|
||||||
#"6.9",
|
|
||||||
"7.1",
|
|
||||||
]
|
|
||||||
EVENT_MATRIX:
|
|
||||||
- NONE
|
|
||||||
- NO_SSL
|
|
||||||
- DISABLE_OPENSSL
|
|
||||||
- DISABLE_THREAD_SUPPORT
|
|
||||||
- DISABLE_DEBUG_MODE
|
|
||||||
- DISABLE_MM_REPLACEMENT
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.0.0
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Build
|
- name: Cache Build
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: openbsd-${{ matrix.release }}-autotools-${{ matrix.EVENT_MATRIX }}-v1
|
key: openbsd-${{ matrix.release }}-autotools-v1
|
||||||
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
@ -1067,31 +942,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
export AUTOMAKE_VERSION=1.16
|
export AUTOMAKE_VERSION=1.16
|
||||||
export AUTOCONF_VERSION=2.71
|
export AUTOCONF_VERSION=2.71
|
||||||
|
|
||||||
if [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_OPENSSL" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-openssl"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "NO_SSL" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-openssl --disable-mbedtls"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_THREAD_SUPPORT" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-thread-support"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_DEBUG_MODE" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-debug-mode"
|
|
||||||
|
|
||||||
elif [ "${{ matrix.EVENT_MATRIX }}" == "DISABLE_MM_REPLACEMENT" ]; then
|
|
||||||
EVENT_CONFIGURE_OPTIONS="--disable-malloc-replacement"
|
|
||||||
|
|
||||||
else
|
|
||||||
EVENT_CONFIGURE_OPTIONS=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
echo [configure]: ../configure $EVENT_CONFIGURE_OPTIONS
|
echo [configure]: ../configure
|
||||||
../configure $EVENT_CONFIGURE_OPTIONS
|
../configure
|
||||||
make V=1
|
make V=1
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
|
42
README.md
42
README.md
@ -13,17 +13,19 @@
|
|||||||
|
|
||||||
# 1. BUILDING AND INSTALLATION
|
# 1. BUILDING AND INSTALLATION
|
||||||
|
|
||||||
## Autoconf
|
|
||||||
|
|
||||||
```
|
|
||||||
$ ./configure
|
|
||||||
$ make
|
|
||||||
$ make verify # (optional)
|
|
||||||
$ sudo make install
|
|
||||||
```
|
|
||||||
|
|
||||||
See [Documentation/Building#Autoconf](/Documentation/Building.md#autoconf) for more information
|
See [Documentation/Building#Autoconf](/Documentation/Building.md#autoconf) for more information
|
||||||
|
|
||||||
|
## CMake (Unix)
|
||||||
|
|
||||||
|
```
|
||||||
|
$ mkdir build && cd build
|
||||||
|
$ cmake .. # Default to Unix Makefiles.
|
||||||
|
$ make
|
||||||
|
$ make verify # (optional)
|
||||||
|
```
|
||||||
|
|
||||||
|
See [Documentation/Building#Building on Unix (With CMake)](/Documentation/Building.md#building-on-unix-cmake) for more information
|
||||||
|
|
||||||
## CMake (Windows)
|
## CMake (Windows)
|
||||||
|
|
||||||
Install CMake: <https://www.cmake.org>
|
Install CMake: <https://www.cmake.org>
|
||||||
@ -36,17 +38,6 @@ $ cmake --build . --config Release # Or "start libevent.sln" and build with menu
|
|||||||
|
|
||||||
See [Documentation/Building#Building on Windows](/Documentation/Building.md#building-on-windows) for more information
|
See [Documentation/Building#Building on Windows](/Documentation/Building.md#building-on-windows) for more information
|
||||||
|
|
||||||
## CMake (Unix)
|
|
||||||
|
|
||||||
```
|
|
||||||
$ mkdir build && cd build
|
|
||||||
$ cmake .. # Default to Unix Makefiles.
|
|
||||||
$ make
|
|
||||||
$ make verify # (optional)
|
|
||||||
```
|
|
||||||
|
|
||||||
See [Documentation/Building#Building on Unix (With CMake)](/Documentation/Building.md#building-on-unix-cmake) for more information
|
|
||||||
|
|
||||||
## Package Managers
|
## Package Managers
|
||||||
|
|
||||||
You can download and install libevent using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
|
You can download and install libevent using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
|
||||||
@ -59,6 +50,17 @@ You can download and install libevent using the [vcpkg](https://github.com/Micro
|
|||||||
|
|
||||||
The libevent port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
|
The libevent port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
|
||||||
|
|
||||||
|
## Autoconf
|
||||||
|
|
||||||
|
*Note, since 2.2 it is deprecated*
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ./configure
|
||||||
|
$ make
|
||||||
|
$ make verify # (optional)
|
||||||
|
$ sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
# 2. USEFUL LINKS:
|
# 2. USEFUL LINKS:
|
||||||
|
|
||||||
For the latest released version of Libevent, see the official website at
|
For the latest released version of Libevent, see the official website at
|
||||||
|
Loading…
x
Reference in New Issue
Block a user