diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..8d5befb --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,58 @@ +name: CMake + +on: + push: + paths-ignore: + - 'README.md' + - '.gitignore' + - 'LICENSE' + - 'doc/**' + - 'pkg/**' + +env: + BUILD_TYPE: Release + NDK_VER: 21.3.6528147 + NDK_ARCH: x86_64 + +jobs: + desktop: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{runner.workspace}}/build + run: cmake $GITHUB_WORKSPACE/test -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build and Test + working-directory: ${{runner.workspace}}/build + shell: bash + run: cmake --build . --config $BUILD_TYPE --target run-test + + android: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 29 + arch: ${{env.NDK_ARCH}} + target: google_apis + ndk: ${{env.NDK_VER}} + script: | + mkdir -p ${{runner.workspace}}/build + cd ${{runner.workspace}}/build + cmake $GITHUB_WORKSPACE/test -DCMAKE_BUILD_TYPE:STRING=$BUILD_TYPE -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$ANDROID_SDK_ROOT/ndk/$NDK_VER/build/cmake/android.toolchain.cmake -DANDROID_ABI:STRING=$NDK_ARCH -DANDROID_PLATFORM:STRING=19 -DANDROID_STL:STRING=c++_static + cmake --build . --config $BUILD_TYPE --target run-test + + diff --git a/pkg/conan/conanfile.py b/pkg/conan/conanfile.py index db9aad5..2519632 100644 --- a/pkg/conan/conanfile.py +++ b/pkg/conan/conanfile.py @@ -7,7 +7,7 @@ class SysStringConan(ConanFile): license = "BSD 3-Clause License" author = "Eugene Gershnik gershnik@hotmail.com" url = "https://github.com/gershnik/sys_string" - description = "A pointer-sized, immutable, Unicode-first C++ string class that is optimized for interoperability with platform-native string types." + description = "C++ string class optimized for interoperability with platform-native string types." topics = ("string class", "unicode") settings = "cppstd", "os", "compiler", "build_type", "arch" options = {"shared": [True, False], "fPIC": [True, False]}