diff --git a/.github/workflows/extra-unit-cuda-updates.yml b/.github/workflows/extra-unit-cuda-updates.yml new file mode 100644 index 0000000..93f4ea4 --- /dev/null +++ b/.github/workflows/extra-unit-cuda-updates.yml @@ -0,0 +1,76 @@ +name: extra-unit-cuda-updates + +on: [push, pull_request] + +jobs: + release: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v4 + + - name: Checkout HiGHS repo + uses: actions/checkout@v4 + with: + repository: ERGO-Code/HiGHS + ref: cuda-updates + path: HiGHS + + - name: Checkout highs-unit-tests repo + uses: actions/checkout@v4 + with: + repository: galabovaa/highs-unit-tests + ref: cuda-updates + path: highs-unit-tests + + - name: HiGHS dir + working-directory: HiGHS + run: | + ls -a + pwd + + - name: extra tests dir + working-directory: highs-unit-tests + run: | + ls -a + pwd + + - name: workspace dir + working-directory: ${{runner.workspace}} + run: | + ls -a + pwd + + - name: Symlink extra tests to HiGHS + working-directory: ${{runner.workspace}}/highs-tests/HiGHS/check + run: | + ls -a + pwd + mv ${{runner.workspace}}/highs-tests/highs-unit-tests ./highs-unit-tests + cd highs-unit-tests + ls -a + pwd + + - name: Create Build Environment + run: cmake -E make_directory ${{runner.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{runner.workspace}}/build + run: cmake ${{runner.workspace}}/highs-tests/HiGHS -DALL_TESTS=ON -DBUILD_EXTRA_UNIT_TESTS=ON + + - name: Build + working-directory: ${{runner.workspace}}/build + shell: bash + run: | + cmake --build . --parallel + + - name: Test + working-directory: ${{runner.workspace}}/build + shell: bash + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest --parallel --timeout 300 --output-on-failure \ No newline at end of file