diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml deleted file mode 100644 index e7342f96..00000000 --- a/.github/workflows/android-ci.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: android - -on: - push: - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - inputs: - ndk_ver: - description: 'Specific the ndk version, i.e. r16b, r19c or later' - # Default value if no value is explicitly provided - default: 'r16b+' - # Input has to be provided for the workflow to run - required: false - -env: - NDK_VER: ${{github.event.inputs.ndk_ver}} # r16b can't runs on ubuntu latest, test works on ubuntu-18.04 - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: windows-latest - - strategy: - matrix: - arch: - - armv7 - - arm64 - - x86 - - x64 - env: - BUILD_ARCH: ${{ matrix.arch }} - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: Build - # Execute the build. You can specify a specific target with "--target " - shell: pwsh - run: ./tools/ci.ps1 -p android -a $env:BUILD_ARCH diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..b5fc9653 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,270 @@ +name: build + +on: + push: + branches: dev + paths-ignore: + - '**.md' + - '**/*.md.in' + - 'docs/**' + - '.github/workflows/docs.yml' + - '.github/workflows/codeql.yml' + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + paths-ignore: + - '**.md' + - '**/*.md.in' + - 'docs/**' + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + PING_HOST: github.com + +jobs: + win-msvc: + runs-on: windows-latest + strategy: + matrix: + arch: + - x86 + - x64 + env: + BUILD_ARCH: ${{ matrix.arch }} + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ env.BUILD_ARCH }} + uwp: 'false' + + - name: Build + shell: pwsh + run: | + .\tools\ci.ps1 -p win32 -a $env:BUILD_ARCH + win-clang: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ env.BUILD_ARCH }} + uwp: 'false' + - name: Build + shell: pwsh + run: | + .\tools\ci.ps1 -p win32 -cc clang + win-mingw: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - uses: msys2/setup-msys2@v2 + with: + msystem: mingw64 + install: mingw-w64-x86_64-toolchain + - name: Build + run: .\tools\ci.ps1 -p win32 -cc 'gcc' + winuwp: + runs-on: windows-latest + strategy: + matrix: + arch: + - x64 + - arm64 + env: + BUILD_ARCH: ${{ matrix.arch }} + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ env.BUILD_ARCH }} + uwp: 'true' + + - name: Build + shell: pwsh + run: .\tools\ci.ps1 -p winuwp -a $env:BUILD_ARCH + linux: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: Build + # Execute the build. You can specify a specific target with "--target " + shell: pwsh + run: | + ./tools/ci.ps1 -p linux + android: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: windows-latest + + strategy: + matrix: + arch: + - armv7 + - arm64 + - x86 + - x64 + env: + BUILD_ARCH: ${{ matrix.arch }} + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: Build + # Execute the build. You can specify a specific target with "--target " + shell: pwsh + run: ./tools/ci.ps1 -p android -a $env:BUILD_ARCH + osx: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: macos-latest + + strategy: + matrix: + arch: + - x64 + - arm64 + env: + BUILD_ARCH: ${{ matrix.arch }} + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: Build + # Execute the build. You can specify a specific target with "--target " + shell: pwsh + run: | + ./tools/ci.ps1 -p osx -a $env:BUILD_ARCH + ios: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: macos-latest + + strategy: + matrix: + target: + - ios + - tvos + - watchos + env: + BUILD_TARGET: ${{ matrix.target }} + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: Build + # Execute the build. You can specify a specific target with "--target " + shell: pwsh + run: ./tools/ci.ps1 -p $env:BUILD_TARGET -a arm64 + freebsd: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - name: Build + uses: vmactions/freebsd-vm@v1 + with: + release: '14.2' + usesh: true + sync: rsync + copyback: false + prepare: | + pkg install -y git + pkg install -y cmake + pkg install -y python3 + # required by mbedtls-3.3.0 + pkg search pip + python3 -V + # pkg install -y py311-pip + # pip install --no-deps jsonschema + # pip install jinja2 + # install perl5, localtion: /usr/local/bin + pkg search perl5 + pkg search perl5 | cut -d' ' -f1 | head -n 1 | xargs pkg install -y + perl -v + run: | + echo Building on freebsd... + cmake -G "Unix Makefiles" -S . -Bbuild -DYASIO_SSL_BACKEND=2 + cmake --build build --config Release + echo run test icmp on freebsd... + ./build/tests/icmp/icmptest + solaris: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - name: Build + uses: vmactions/solaris-vm@main + with: + usesh: true + sync: rsync + copyback: false + prepare: | + # git + pkgutil -y -i git + # cmake + pkgutil -y -i cmake + # required by mbedtls-3.3.0 + python3 --version + # pip-3.5 install jsonschema jinja2 + # gcc + echo y | pkg install gcc + # check tools + cmake --version + gcc --version + perl -v + run: | + echo Building on solaris... + cmake -G "Unix Makefiles" -S . -Bbuild -DYASIO_SSL_BACKEND=2 + cmake --build build --config Release + echo run test icmp on solaris ... + ./build/tests/icmp/icmptest + echo run ssltest on solaris ... + ./build/tests/ssl/ssltest diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d0df4b96..f515a2fb 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,7 +11,9 @@ # name: codeql -on: [push] +on: + push: + branches: dev jobs: analyze: @@ -37,7 +39,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -51,7 +53,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -64,7 +66,7 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" upload: False @@ -79,7 +81,7 @@ jobs: output: sarif-results/cpp.sarif - name: Upload SARIF - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@v3 with: sarif_file: sarif-results/cpp.sarif diff --git a/.github/workflows/docs-ci.yml b/.github/workflows/docs.yml similarity index 100% rename from .github/workflows/docs-ci.yml rename to .github/workflows/docs.yml diff --git a/.github/workflows/freebsd-ci.yml b/.github/workflows/freebsd-ci.yml deleted file mode 100644 index f12ee674..00000000 --- a/.github/workflows/freebsd-ci.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: freebsd - -on: push - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - name: Build - uses: vmactions/freebsd-vm@v1 - with: - usesh: true - sync: rsync - copyback: false - prepare: | - pkg install -y git - pkg install -y cmake - pkg install -y python3 - # required by mbedtls-3.3.0 - pkg install -y py39-pip - pip install jsonschema jinja2 - # install perl5, localtion: /usr/local/bin - pkg search perl5 - pkg search perl5 | cut -d' ' -f1 | head -n 1 | xargs pkg install -y - perl -v - run: | - echo Building on freebsd... - cmake -G "Unix Makefiles" -S . -Bbuild -DYASIO_SSL_BACKEND=2 - cmake --build build --config Release - echo run test icmp on freebsd... - ./build/tests/icmp/icmptest - diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml deleted file mode 100644 index 87792dd4..00000000 --- a/.github/workflows/ios-ci.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: ios - -on: push - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: macos-latest - - strategy: - matrix: - target: - - ios - - tvos - - watchos - env: - BUILD_TARGET: ${{ matrix.target }} - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: Build - # Execute the build. You can specify a specific target with "--target " - shell: pwsh - run: ./tools/ci.ps1 -p $env:BUILD_TARGET -a arm64 diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml deleted file mode 100644 index c41bf6ef..00000000 --- a/.github/workflows/linux-ci.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: linux - -on: push - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - PING_HOST: github.com - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: Build - # Execute the build. You can specify a specific target with "--target " - shell: pwsh - run: | - ./tools/ci.ps1 -p linux diff --git a/.github/workflows/osx-ci.yml b/.github/workflows/osx-ci.yml deleted file mode 100644 index 88080435..00000000 --- a/.github/workflows/osx-ci.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: osx - -on: push - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: macos-latest - - strategy: - matrix: - arch: - - x64 - - arm64 - env: - BUILD_ARCH: ${{ matrix.arch }} - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - name: Build - # Execute the build. You can specify a specific target with "--target " - shell: pwsh - run: | - ./tools/ci.ps1 -p osx -a $env:BUILD_ARCH diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml deleted file mode 100644 index c63673ba..00000000 --- a/.github/workflows/pr-ci.yml +++ /dev/null @@ -1,142 +0,0 @@ -name: pull_request - -on: [pull_request] - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - PING_HOST: github.com - -jobs: - win32: - runs-on: windows-latest - strategy: - matrix: - arch: - - x86 - - x64 - env: - BUILD_ARCH: ${{ matrix.arch }} - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - uses: ilammy/msvc-dev-cmd@v1 - with: - arch: ${{ env.BUILD_ARCH }} - - name: Build - run: .\tools\ci.ps1 -p win32 -a $env:BUILD_ARCH - winuwp: - runs-on: windows-latest - strategy: - matrix: - arch: - - x64 - - arm64 - env: - BUILD_ARCH: ${{ matrix.arch }} - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - uses: ilammy/msvc-dev-cmd@v1 - with: - arch: ${{ env.BUILD_ARCH }} - uwp: 'true' - - name: Build - run: .\tools\ci.ps1 -p winuwp -a $env:BUILD_ARCH - win32-mingw: - runs-on: windows-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - uses: msys2/setup-msys2@v2 - with: - msystem: mingw64 - install: mingw-w64-x86_64-toolchain - - name: Build - run: .\tools\ci.ps1 -p win32 -cc 'gcc' - linux: - runs-on: ubuntu-latest - env: - BUILD_TARGET: linux - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - name: Build - shell: pwsh - run: ./tools/ci.ps1 - android: - runs-on: windows-latest - strategy: - matrix: - arch: - - armv7 - - arm64 - - x86 - - x64 - env: - BUILD_ARCH: ${{ matrix.arch }} - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - name: Build - shell: pwsh - run: ./tools/ci.ps1 -p android -a $env:BUILD_ARCH - osx: - runs-on: macos-latest - env: - BUILD_TARGET: osx - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - name: Build - shell: pwsh - run: ./tools/ci.ps1 - ios: - runs-on: macos-latest - strategy: - matrix: - target: - - ios - - tvos - - watchos - env: - BUILD_TARGET: ${{ matrix.target }} - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - name: Build - shell: pwsh - run: ./tools/ci.ps1 -p $env:BUILD_TARGET -a arm64 - freebsd: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - name: Build - uses: vmactions/freebsd-vm@main - with: - usesh: true - prepare: | - pkg install -y git - pkg install -y cmake - pkg install -y python3 - # required by mbedtls-3.3.0 - pkg install -y py39-pip - pip install jsonschema jinja2 - # install perl5, localtion: /usr/local/bin - pkg search perl5 - pkg search perl5 | cut -d' ' -f1 | head -n 1 | xargs pkg install -y - perl -v - run: | - echo Building on freebsd... - cmake -G "Unix Makefiles" -S . -Bbuild -DYASIO_SSL_BACKEND=2 - cmake --build build - echo run test icmp on freebsd... - ./build/tests/icmp/icmptest diff --git a/.github/workflows/solaris-ci.yml b/.github/workflows/solaris-ci.yml deleted file mode 100644 index 148e2554..00000000 --- a/.github/workflows/solaris-ci.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: solaris - -on: push - -jobs: - build: - # The CMake configure and build commands are platform agnostic and should work equally - # well on Windows or Mac. You can convert this to a matrix build if you need - # cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - name: Build - uses: vmactions/solaris-vm@main - with: - usesh: true - sync: rsync - copyback: false - prepare: | - # git - pkgutil -y -i git - # cmake - pkgutil -y -i cmake - # required by mbedtls-3.3.0 - pip-3.4 install jsonschema jinja2 - pip-3.5 install jsonschema jinja2 - # gcc - echo y | pkg install gcc - # check tools - python3 --version - cmake --version - gcc --version - perl -v - run: | - echo Building on solaris... - cmake -G "Unix Makefiles" -S . -Bbuild -DYASIO_SSL_BACKEND=2 - cmake --build build --config Release - echo run test icmp on solaris ... - ./build/tests/icmp/icmptest - echo run ssltest on solaris ... - ./build/tests/ssl/ssltest - diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml deleted file mode 100644 index 4e6796fa..00000000 --- a/.github/workflows/windows-ci.yml +++ /dev/null @@ -1,86 +0,0 @@ -name: windows - -on: push - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - PING_HOST: github.com - -jobs: - msvc: - runs-on: windows-latest - strategy: - matrix: - arch: - - x86 - - x64 - env: - BUILD_ARCH: ${{ matrix.arch }} - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - uses: ilammy/msvc-dev-cmd@v1 - with: - arch: ${{ env.BUILD_ARCH }} - uwp: 'false' - - - name: Build - shell: pwsh - run: | - .\tools\ci.ps1 -p win32 -a $env:BUILD_ARCH - clang: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - uses: ilammy/msvc-dev-cmd@v1 - with: - arch: ${{ env.BUILD_ARCH }} - uwp: 'false' - - name: Build - shell: pwsh - run: | - .\tools\ci.ps1 -p win32 -cc clang - mingw: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - uses: msys2/setup-msys2@v2 - with: - msystem: mingw64 - install: mingw-w64-x86_64-toolchain - - name: Build - run: .\tools\ci.ps1 -p win32 -cc 'gcc' - winuwp: - runs-on: windows-latest - strategy: - matrix: - arch: - - x64 - - arm64 - env: - BUILD_ARCH: ${{ matrix.arch }} - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - - uses: ilammy/msvc-dev-cmd@v1 - with: - arch: ${{ env.BUILD_ARCH }} - uwp: 'true' - - - name: Build - shell: pwsh - run: .\tools\ci.ps1 -p winuwp -a $env:BUILD_ARCH diff --git a/CMakeLists.txt b/CMakeLists.txt index 33903c4a..073f7962 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -184,10 +184,10 @@ elseif(YASIO_SSL_BACKEND EQUAL 2) # mbedtls set(ENABLE_PROGRAMS OFF CACHE BOOL "Build mbedtls programs" FORCE) set(ENABLE_TESTING OFF CACHE BOOL "Build mbed TLS tests." FORCE) if(MSVC_VERSION AND (MSVC_VERSION LESS 1900)) - set(MBEDTLS_VER "2.28.9") + set(MBEDTLS_VER "2.28.10") message(AUTHOR_WARNING "Using mbedtls ${MBEDTLS_VER} for vs2013 happy") else() - set(MBEDTLS_VER "3.6.2") + set(MBEDTLS_VER "3.6.3") endif() if (PWSH_COMMAND) _1kadd_pkg("gh:Mbed-TLS/mbedtls#v${MBEDTLS_VER}" OPTIONS "MBEDTLS_FATAL_WARNINGS OFF") diff --git a/README.md b/README.md index 3a3d1c7a..ad413f27 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ # *YASIO* - *Y*et *A*nother *S*ocket *I*/*O* library. +[![Build Status](https://github.com/simdsoft/yasio/workflows/build/badge.svg)](https://github.com/simdsoft/yasio/actions?query=workflow%3Abuild) +[![VS2013 Status](https://ci.appveyor.com/api/projects/status/xdmad4v3917n7rct?svg=true)](https://ci.appveyor.com/project/halx99/yasio) [![Latest Release](https://img.shields.io/github/v/release/yasio/yasio?include_prereleases&label=release)](../../releases/latest) [![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) [![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/yasio/yasio/blob/master/LICENSE) @@ -15,16 +17,13 @@ ## 支持平台 -| Build | Status (github) | -|-------|-----------------| -| Windows(msvc,clang,mingw)|[![Windows Build Status](https://github.com/yasio/yasio/workflows/windows/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Awindows)| -| Windows(vs2013)|[![Windows VS2013 status](https://ci.appveyor.com/api/projects/status/xdmad4v3917n7rct?svg=true)](https://ci.appveyor.com/project/halx99/yasio)| -| Android|[![Android Build Status](https://github.com/yasio/yasio/workflows/android/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Aandroid)| -| iOS/tvOS/watchOS|[![iOS Build Status](https://github.com/yasio/yasio/workflows/ios/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Aios)| -| Linux |[![Linux Build Status](https://github.com/yasio/yasio/workflows/linux/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Alinux)| -| macOS |[![macOS Build Status](https://github.com/yasio/yasio/workflows/osx/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Aosx)| -| FreeBSD |[![FreeBSD Build Status](https://github.com/yasio/yasio/workflows/freebsd/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Afreebsd)| -| Solaris |[![Solaris Build Status](https://github.com/yasio/yasio/workflows/solaris/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Asolaris)| +- Windows +- Android +- iOS/tvOS/watchOS +- Linux +- macOS +- FreeBSD +- Solaris ## 应用案例 diff --git a/README_EN.md b/README_EN.md index b920aaba..23b98a2c 100644 --- a/README_EN.md +++ b/README_EN.md @@ -2,6 +2,8 @@ # *YASIO* - *Y*et *A*nother *S*ocket *I*/*O* library. +[![Build Status](https://github.com/simdsoft/yasio/workflows/build/badge.svg)](https://github.com/simdsoft/yasio/actions?query=workflow%3Abuild) +[![VS2013 Status](https://ci.appveyor.com/api/projects/status/xdmad4v3917n7rct?svg=true)](https://ci.appveyor.com/project/halx99/yasio) [![Latest Release](https://img.shields.io/github/v/release/yasio/yasio?include_prereleases&label=release)](../../releases/latest) [![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) [![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/yasio/yasio/blob/master/LICENSE) @@ -16,16 +18,13 @@ ## Supported Platforms -| Build | Status (github) | -|-------|-----------------| -| Windows(msvc,clang,mingw)|[![Windows Build Status](https://github.com/yasio/yasio/workflows/windows/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Awindows)| -| Windows(vs2013)|[![Windows VS2013 status](https://ci.appveyor.com/api/projects/status/xdmad4v3917n7rct?svg=true)](https://ci.appveyor.com/project/halx99/yasio)| -| Android|[![Android Build Status](https://github.com/yasio/yasio/workflows/android/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Aandroid)| -| iOS/tvOS/watchOS|[![iOS Build Status](https://github.com/yasio/yasio/workflows/ios/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Aios)| -| Linux |[![Linux Build Status](https://github.com/yasio/yasio/workflows/linux/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Alinux)| -| macOS |[![macOS Build Status](https://github.com/yasio/yasio/workflows/osx/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Aosx)| -| FreeBSD |[![FreeBSD Build Status](https://github.com/yasio/yasio/workflows/freebsd/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Afreebsd)| -| Solaris |[![Solaris Build Status](https://github.com/yasio/yasio/workflows/solaris/badge.svg)](https://github.com/yasio/yasio/actions?query=workflow%3Asolaris)| +- Windows +- Android +- iOS/tvOS/watchOS +- Linux +- macOS +- FreeBSD +- Solaris ## Showcase