Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 456677b

Browse files
committedSep 8, 2024·
wip fix github actions cfg
1 parent 86bf0f7 commit 456677b

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed
 

‎.github/workflows/build_and_test.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,20 @@ jobs:
6565
working-directory: ${{github.workspace}}/build
6666
run: ctest
6767

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+
6876
- name: Upload build artifact
6977
uses: actions/upload-artifact@v3
7078
with:
7179
name: hypertextcpp-examples-${{ matrix.config.os }}
7280
path: |
73-
${{github.workspace}}/build/examples${{ matrix.config.artifacts-path }}
81+
${{github.workspace}}/examples-build
7482
7583
functional_tests:
7684
name: Functional testing (${{ matrix.config.name }})
@@ -114,23 +122,22 @@ jobs:
114122
uses: actions/download-artifact@v3
115123
with:
116124
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
123126
- name: Set artifacts execute permissions
124127
if: matrix.config.name == 'Linux'
125128
shell: sh
126-
working-directory: ${{github.workspace}}/build/examples
129+
working-directory: ${{github.workspace}}/examples-build
127130
run: chmod +x ex*
128131
- 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
130137
- name: Launch tests
131138
id: launch_tests
132139
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"
134141
- name: Upload failed tests
135142
if: failure() && steps.launch_tests.outcome != 'success' && steps.pre_launch_tests.outcome == 'success'
136143
uses: actions/upload-artifact@v3

‎functional_tests/ci.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#actions:
2+
###
3+
format = Check example #%1
4+
command = ../../examples-build/ex_0%1
5+
checkOutput = %input
6+
---

0 commit comments

Comments
 (0)
Please sign in to comment.