main/fd_listen: return EMFILE if maxfds is reached #4652
Workflow file for this run
This file contains 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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
build_type: [Release, Debug] | |
compiler: [gcc, clang] | |
os: [ubuntu-20.04, ubuntu-22.04, macos-latest] | |
exclude: | |
- os: macos-latest | |
compiler: gcc | |
env: | |
CC: ${{ matrix.compiler }} | |
CMAKE_GENERATOR: Ninja | |
steps: | |
- uses: actions/checkout@v4 | |
- name: openssl path macos | |
if: ${{ runner.os == 'macOS' }} | |
run: | | |
echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl)" >> $GITHUB_ENV | |
- name: fix flaky azure mirrors | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo sed -i 's/azure\./de\./' /etc/apt/sources.list | |
- name: install packages | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo apt-get update && sudo apt-get install -y ninja-build | |
- name: install packages | |
if: ${{ runner.os == 'macOS' }} | |
run: | | |
brew install ninja | |
- name: make info | |
run: | | |
echo "OS: ${{ matrix.os }}" | |
echo "--- ${{ matrix.compiler }} DEBUG VERSION ---" | |
${{ matrix.compiler }} - --version | |
- name: cmake | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -Werror -DCMAKE_C_FLAGS="-Werror" | |
cmake --build build -t retest | |
- name: retest | |
run: | | |
./build/test/retest -r -v |