-
Notifications
You must be signed in to change notification settings - Fork 174
55 lines (45 loc) · 2.42 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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."