Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/test-zib-hsl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Tests at ZIB using HSL

on:
push:
branches: [ "main" ]
paths-ignore:
- '*.md'
- 'LICENSE'
- '*.cff'
- '*.yml'
- '*.yaml'
- 'docs/**'
pull_request:
branches: [ "main" ]
paths-ignore:
- '*.md'
- 'LICENSE'
- '*.cff'
- '*.yml'
- '*.yaml'
- 'docs/**'

env:
BUILD_TYPE: Release
LIBS: /srv/lib

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
runs-on: gh-ar-cvanaret-uno-benchmark
steps:
- uses: actions/checkout@v4

- name: Download dependencies
run: bash dependencies/scripts/download_dependencies.sh

- name: Test NFS
run: |
cat ${{env.LIBS}}/test.txt

- name: Configure
run: |
LIBHSL_PATH="${{env.LIBS}}/libhsl/builddir/libhsl.so"
LIBMETIS_PATH="${{env.LIBS}}/libmetis.a"
LIBAMPL_PATH="${{env.LIBS}}/ampl/amplsolver.a"

cmake -B build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_Fortran_COMPILER=gfortran \
-DHSL=${LIBHSL_PATH} \
-DMETIS=${LIBMETIS_PATH} \
-DAMPLSOLVER=${LIBAMPL_PATH} \
-DBUILD_STATIC_LIBS=OFF \
-DBUILD_SHARED_LIBS=ON

- name: Build
run: cmake --build build --target uno_ampl --config ${{env.BUILD_TYPE}} --parallel

- name: Run instance
working-directory: build
run: ./uno_ampl "${{env.LIBS}}/Mittelmann/qssp180.nl" preset=ipopt
Loading