@@ -65,12 +65,20 @@ jobs:
65
65
working-directory : ${{github.workspace}}/build
66
66
run : ctest
67
67
68
+ - name : Prepare examples artifacts
69
+ shell : bash
70
+ run : |
71
+ mkdir examples-build
72
+ find build/examples -type f -name "ex_*" -exec cp {} examples-build \;
73
+ find build/examples -type f -name "*.so" -exec cp {} examples-build \;
74
+ find build/examples -type f -name "*.dll" -exec cp {} examples-build \;
75
+
68
76
- name : Upload build artifact
69
77
uses : actions/upload-artifact@v3
70
78
with :
71
79
name : hypertextcpp-examples-${{ matrix.config.os }}
72
80
path : |
73
- ${{github.workspace}}/build/ examples${{ matrix.config.artifacts-path }}
81
+ ${{github.workspace}}/examples-build
74
82
75
83
functional_tests :
76
84
name : Functional testing (${{ matrix.config.name }})
@@ -114,23 +122,22 @@ jobs:
114
122
uses : actions/download-artifact@v3
115
123
with :
116
124
name : hypertextcpp-examples-${{ matrix.config.os }}
117
- path : build/
118
- - name : Fix artifacts paths on Windows
119
- if : matrix.config.name == 'Windows'
120
- working-directory : ${{github.workspace}}/build/
121
- shell : sh
122
- run : mv examples/Release/* examples/ || true
125
+ path : ${{github.workspace}}/examples-build
123
126
- name : Set artifacts execute permissions
124
127
if : matrix.config.name == 'Linux'
125
128
shell : sh
126
- working-directory : ${{github.workspace}}/build/ examples
129
+ working-directory : ${{github.workspace}}/examples-build
127
130
run : chmod +x ex*
128
131
- name : Prepare tests
129
- run : cp ${{github.workspace}}/build/examples/ex_05/libtodolist.so functional_tests/ex_05/
132
+ shell : bash
133
+ run : |
134
+ ls ${{github.workspace}}/examples-build/
135
+ cp ${{github.workspace}}/examples-build/*.so functional_tests/example_5/ || true
136
+ cp ${{github.workspace}}/examples-build/todolist.dll functional_tests/example_5/ || true
130
137
- name : Launch tests
131
138
id : launch_tests
132
139
working-directory : ${{github.workspace}}
133
- run : lunchtoast/lunchtoast functional_tests ${{ matrix.config.shell_command }} -collectFailedTests=failed_tests
140
+ run : lunchtoast/lunchtoast functional_tests ${{ matrix.config.shell_command }} -collectFailedTests=failed_tests -config="ci.cfg"
134
141
- name : Upload failed tests
135
142
if : failure() && steps.launch_tests.outcome != 'success' && steps.pre_launch_tests.outcome == 'success'
136
143
uses : actions/upload-artifact@v3
0 commit comments