@@ -29,30 +29,30 @@ jobs:
29
29
cc : " gcc" ,
30
30
cxx : " g++" ,
31
31
flags : " -Wall -Werror -Wextra -Wpedantic -Wcast-align -Wnon-virtual-dtor -Woverloaded-virtual -Wunused" ,
32
- artifacts-path : " build/examples "
32
+ artifacts-path : " "
33
33
}
34
34
- {
35
35
name : " Ubuntu Latest clang" ,
36
36
os : ubuntu-latest,
37
37
cc : " clang" ,
38
38
cxx : " clang++" ,
39
39
flags : " -Wall -Werror -Wextra -Wpedantic -Wcast-align -Wnon-virtual-dtor -Woverloaded-virtual -Wunused" ,
40
- artifacts-path : " build/examples "
40
+ artifacts-path : " "
41
41
}
42
42
- {
43
43
name : " Windows Latest MSVC" ,
44
44
os : windows-latest,
45
45
cc : " cl" ,
46
46
cxx : " cl" ,
47
47
flags : " /EHsc /W4 /WX /wd4267" ,
48
- artifacts-path : " build/examples /Release"
48
+ artifacts-path : " /Release"
49
49
}
50
50
51
51
steps :
52
52
- uses : actions/checkout@v3
53
53
54
54
- name : Configure CMake
55
- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON -DENABLE_EXAMPLES=ON -DFIGCONE_USE_NAMEOF=${{ matrix.use_nameof }} -DCMAKE_CXX_FLAGS="${{ matrix.config.flags }}"
55
+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON -DENABLE_TESTS_CPP20=ON -DENABLE_TESTS_STATIC_REFL=ON - DENABLE_EXAMPLES=ON -DENABLE_EXAMPLES_STATIC_REFL =ON -DFIGCONE_USE_NAMEOF=${{ matrix.use_nameof }} -DCMAKE_CXX_FLAGS="${{ matrix.config.flags }}"
56
56
57
57
- name : Build
58
58
run : cmake --build ${{github.workspace}}/build --config Release
65
65
uses : actions/upload-artifact@v3
66
66
with :
67
67
name : figcone-examples-${{ matrix.config.os }}-nameof-${{ matrix.use_nameof }}
68
- path : ${{ matrix.config.artifacts-path }}
68
+ path : |
69
+ ${{github.workspace}}/build/examples${{ matrix.config.artifacts-path }}
70
+ ${{github.workspace}}/build/examples_static_refl${{ matrix.config.artifacts-path }}
69
71
70
72
functional_tests :
71
73
name : Functional testing (${{ matrix.config.name }}, nameof = ${{ matrix.use_nameof }})
@@ -110,12 +112,22 @@ jobs:
110
112
uses : actions/download-artifact@v3
111
113
with :
112
114
name : figcone-examples-${{ matrix.config.os }}-nameof-${{ matrix.use_nameof }}
113
- path : build/examples
115
+ path : build/
116
+ - name : Fix artifacts paths on Windows
117
+ if : matrix.config.name == 'Windows'
118
+ working-directory : ${{github.workspace}}/build/
119
+ shell : sh
120
+ run : mv examples_static_refl/Release/* examples_static_refl/ && mv examples/Release/* examples/ || true
114
121
- name : Set artifacts execute permissions
115
122
if : matrix.config.name == 'Linux'
116
123
shell : sh
117
124
working-directory : ${{github.workspace}}/build/examples
118
125
run : chmod +x ex* && chmod +x demo_*
126
+ - name : Set artifacts execute permissions
127
+ if : matrix.config.name == 'Linux'
128
+ shell : sh
129
+ working-directory : ${{github.workspace}}/build/examples_static_refl
130
+ run : chmod +x ex* && chmod +x demo_*
119
131
- name : Launch tests
120
132
id : launch_tests
121
133
working-directory : ${{github.workspace}}
0 commit comments