README_P2P: ICE is enabled by default; update roadmap #6
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: Soak | |
| on: [push, pull_request] | |
| jobs: | |
| soak-ubuntu: | |
| name: Ubuntu | |
| runs-on: ubuntu-24.04 | |
| env: | |
| CI_BUILD: 1 | |
| IMAGE: ubuntu | |
| IMAGE_TAG: noble | |
| steps: | |
| - uses: actions/checkout@main | |
| - name: Update packages | |
| run: sudo -E bash .github/update-packages.sh | |
| - name: Install dependencies | |
| run: | | |
| sudo -E bash .github/install.sh | |
| sudo -E bash .github/install-post.sh | |
| - name: Build (Debug) | |
| run: | | |
| python3 .github/run-single-config.py \ | |
| --compiler clang \ | |
| --build-dir build-debug \ | |
| --build-type Debug \ | |
| --sanitizer none \ | |
| --targets test_connection | |
| - name: Test connection soak (Debug) | |
| run: | | |
| python3 .github/run-single-config.py \ | |
| --compiler clang \ | |
| --build-dir build-debug \ | |
| --phase test \ | |
| --run-tests \ | |
| --tests test_connection:soak | |
| soak-windows: | |
| name: Windows | |
| runs-on: windows-2025 | |
| env: | |
| VCPKG_ROOT: ${{ github.workspace }}/vcpkg | |
| VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-bincache | |
| VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg-bincache,readwrite | |
| steps: | |
| - uses: actions/checkout@main | |
| - name: Configure Git | |
| run: git config --global --add safe.directory '*' | |
| shell: cmd | |
| - uses: lukka/get-cmake@latest | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| - name: set VCPKG_ROOT | |
| run: | | |
| "VCPKG_ROOT=${{ github.workspace }}/vcpkg" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| shell: pwsh | |
| - name: Setup local vcpkg | |
| run: | | |
| git clone https://github.com/microsoft/vcpkg.git "${{ env.VCPKG_ROOT }}" | |
| cd /d "${{ env.VCPKG_ROOT }}" | |
| git checkout 522253caf47268c1724f486a035e927a42a90092 | |
| call bootstrap-vcpkg.bat -disableMetrics | |
| shell: cmd | |
| - name: Ensure vcpkg cache directories exist | |
| run: | | |
| New-Item -ItemType Directory -Path "${{ env.VCPKG_ROOT }}/downloads" -Force | Out-Null | |
| New-Item -ItemType Directory -Path "${{ env.VCPKG_DEFAULT_BINARY_CACHE }}" -Force | Out-Null | |
| shell: pwsh | |
| - name: Restore vcpkg caches | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ${{ env.VCPKG_ROOT }}/downloads | |
| ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} | |
| key: vcpkg-${{ runner.os }}-2025-BCrypt-${{ env.VCToolsVersion }}-522253caf47268c1724f486a035e927a42a90092-${{ hashFiles('vcpkg.json') }} | |
| restore-keys: | | |
| vcpkg-${{ runner.os }}-2025-BCrypt-${{ env.VCToolsVersion }}- | |
| vcpkg-${{ runner.os }}-2025-BCrypt- | |
| - name: vcpkg check / install dependencies | |
| working-directory: '${{ github.workspace }}' | |
| run: '"${{env.VCPKG_ROOT}}\vcpkg" install --vcpkg-root "${{env.VCPKG_ROOT}}" --triplet=x64-windows' | |
| shell: cmd | |
| - name: Configure CMake (Debug) | |
| run: | | |
| mkdir build-debug | |
| cd build-debug | |
| cmake -S .. -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DBUILD_TESTS=ON "-DCMAKE_TOOLCHAIN_FILE=${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" -DUSE_CRYPTO=BCrypt | |
| shell: cmd | |
| - name: Build (Debug) | |
| working-directory: '${{ github.workspace }}/build-debug' | |
| run: ninja test_connection | |
| shell: cmd | |
| - name: Test connection soak (Debug) | |
| working-directory: '${{ github.workspace }}/build-debug/bin' | |
| run: test_connection.exe soak | |
| shell: cmd | |
| soak-macos: | |
| name: macOS | |
| runs-on: macos-latest | |
| env: | |
| VCPKG_ROOT: ${{ github.workspace }}/vcpkg | |
| VCPKG_DOWNLOADS: ${{ github.workspace }}/vcpkg-downloads | |
| VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-bincache | |
| VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg-bincache,readwrite | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Ensure vcpkg cache directories exist | |
| run: | | |
| mkdir -p "${VCPKG_DOWNLOADS}" | |
| mkdir -p "${VCPKG_DEFAULT_BINARY_CACHE}" | |
| - name: Install vcpkg | |
| run: | | |
| git clone https://github.com/microsoft/vcpkg.git "${VCPKG_ROOT}" | |
| cd "${VCPKG_ROOT}" | |
| git checkout 522253caf47268c1724f486a035e927a42a90092 | |
| ./bootstrap-vcpkg.sh | |
| ./vcpkg integrate install | |
| - name: Restore vcpkg caches | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ${{ env.VCPKG_DOWNLOADS }} | |
| ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} | |
| key: vcpkg-${{ runner.os }}-macos-522253caf47268c1724f486a035e927a42a90092-${{ hashFiles('vcpkg.json') }} | |
| restore-keys: | | |
| vcpkg-${{ runner.os }}-macos- | |
| - name: Install vcpkg dependencies | |
| run: | | |
| "${VCPKG_ROOT}/vcpkg" install | |
| - name: Configure CMake (Debug) | |
| run: | | |
| cmake -B ${{github.workspace}}/build-debug \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake \ | |
| -DBUILD_TESTS=ON | |
| - name: Build (Debug) | |
| run: cmake --build ${{github.workspace}}/build-debug --config Debug --target test_connection | |
| - name: Test connection soak (Debug) | |
| working-directory: ${{github.workspace}}/build-debug/bin | |
| run: ./test_connection soak | |
| shell: bash |