From d42de0af581ed6aff1084e041ae8e6d543f25dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ars=C3=A8ne=20P=C3=A9rard-Gayot?= Date: Sat, 26 Jun 2021 12:44:26 +0200 Subject: [PATCH] Windows: Give up on setting path and try copying the DLL --- .github/workflows/build_and_test.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index bc330ad..c53a5ba 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -55,13 +55,14 @@ jobs: - name: Build Artic run: cmake --build ${{github.workspace}}/artic/build --config ${{matrix.build-type}} - # Set the Thorin DLL path for Windows - - name: Set path to Thorin (Windows only) + # Copy the Thorin DLL for Windows (when it exists) + - name: Copy Thorin DLL (Windows only) if: startsWith(matrix.os, 'windows') - run: echo "${{github.workspace}}/thorin/build/bin/${{matrix.build-type}}" >> $GITHUB_PATH - - - name: Show current path - run: echo "$PATH" + continue-on-error: true + run: > + cmake -E copy + "${{github.workspace}}/thorin/build/bin/${{matrix.build-type}}/thorin.dll" + "${{github.workspace}}/artic/build/bin/${{matrix.build-type}}/thorin.dll" - name: Test Artic working-directory: ${{github.workspace}}/artic/build