Skip to content

Commit 59cd4ee

Browse files
committed
fix problem#5
1 parent bfee55d commit 59cd4ee

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,20 @@ jobs:
139139

140140

141141
#################################
142-
# Upload artifacts
142+
# Run tests (Linux)
143143
#################################
144-
- name: Upload build artifacts
145-
if: success()
146-
uses: actions/upload-artifact@v4
147-
with:
148-
name: build-${{ matrix.os }}-${{ matrix.c_compiler }}
149-
path: |
150-
${{ steps.strings.outputs.build-output-dir }}/ChainedDecos*
151-
${{ steps.strings.outputs.build-output-dir }}/ChainedDecosMapEditor*
152-
${{ steps.strings.outputs.build-output-dir }}/*.exe
153-
retention-days: 7
144+
- name: Run unit tests (Linux)
145+
if: matrix.os == 'ubuntu-latest'
146+
shell: bash
147+
run: |
148+
chmod +x ${{ steps.strings.outputs.build-output-dir }}/unit_tests
149+
${{ steps.strings.outputs.build-output-dir }}/unit_tests
150+
151+
#################################
152+
# Run tests (Windows)
153+
#################################
154+
- name: Run unit tests (Windows)
155+
if: matrix.os == 'windows-latest'
156+
shell: pwsh
157+
run: |
158+
& "${{ steps.strings.outputs.build-output-dir }}\unit_tests.exe"

0 commit comments

Comments
 (0)