Merge pull request #39 from pieceofsummer/arbitrary-char-type #49
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: Continuous Integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: windows-latest | |
compiler: cl | |
- os: ubuntu-latest | |
compiler: g++ | |
- os: ubuntu-latest | |
compiler: clang++ | |
- os: macos-latest | |
compiler: clang++ | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=${{matrix.compiler}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Unit Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Test Obfuscated (auto) | |
run: python test_obfuscated.py ${{github.workspace}}/build/${{env.BUILD_TYPE}}/test_obfuscated.out "1 auto str" | |
- name: Test Obfuscated (char*) | |
run: python test_obfuscated.py ${{github.workspace}}/build/${{env.BUILD_TYPE}}/test_obfuscated.out "2 char* str" | |
- name: Test Obfuscated (const char*) | |
run: python test_obfuscated.py ${{github.workspace}}/build/${{env.BUILD_TYPE}}/test_obfuscated.out "3 const char* str" | |
- name: Test Obfuscated (static const char*) | |
run: python test_obfuscated.py ${{github.workspace}}/build/${{env.BUILD_TYPE}}/test_obfuscated.out "4 static const char* str" | |
- name: Test Obfuscated (Long String) | |
run: python test_obfuscated.py ${{github.workspace}}/build/${{env.BUILD_TYPE}}/test_obfuscated.out "5 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sed ullamcorper lectus. Cras dapibus, turpis in dignissim consequat, justo massa vehicula sem, vestibulum condimentum dui risus vitae nunc. Mauris tincidunt condimentum nulla, non elementum lectus molestie id. Ut eget libero lorem. Proin vitae massa vehicula, hendrerit est a, tincidunt est. Sed aliquam velit quam, laoreet commodo massa aliquam et. Phasellus in nulla ac risus facilisis porttitor sit amet at enim. Vivamus ornare libero sit amet enim egestas semper vel non dolor.Ut vitae scelerisque elit, sed tincidunt tellus.Maecenas a accumsan justo, sit amet auctor nisl.Donec et quam mollis." |