Skip to content

Commit

Permalink
CI: test windows saf_test
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hld authored Feb 6, 2024
1 parent 018e06e commit 59971a0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
run: |
curl https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.26/OpenBLAS-0.3.26-x64.zip -L -o tmp.zip
7z x ./tmp.zip -oOpenBLAS
cp ./OpenBLAS/lib/libopenblas.lib $GITHUB_WORKSPACE
cp ./OpenBLAS/bin/libopenblas.dll $GITHUB_WORKSPACE
echo "$GITHUB_WORKSPACE" >> $GITHUB_PATH
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
Expand Down Expand Up @@ -66,9 +69,15 @@ jobs:
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build . --config $BUILD_TYPE

- name: Copy binaries (Windows)
working-directory: ${{runner.workspace}}/build
shell: bash
if: ${{ contains( runner.os, 'Windows' ) }}
run: |
cp ./test/$BUILD_TYPE/saf_test.exe ./test/saf_test

- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
if: ${{ contains( runner.os, 'Linux' ) || contains( runner.os, 'macOS' )}}
# Execute tests
run: ./test/saf_test

0 comments on commit 59971a0

Please sign in to comment.