Skip to content

Commit

Permalink
extra unit tests for cuda updates
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Jan 8, 2025
1 parent 073df99 commit 9ce3943
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/extra-unit-cuda-updates.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9ce3943

Please sign in to comment.