diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93852b17..634724db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,4 +47,6 @@ jobs: - name: Build # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). - run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} \ No newline at end of file + run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} + + \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..0d1e538a --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,42 @@ + +name: Run Tests +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Configure CMake ADOL-C + run: > + cmake + -DCMAKE_CXX_COMPILER=g++ + -DCMAKE_C_COMPILER=gcc + -DCMAKE_BUILD_TYPE=Release + -S ${{ github.workspace }} + -DCMAKE_INSTALL_PREFIX=${{ github.workspace }} + + - name: Build ADOLC + run: | + make + make install + + - name: Install Boost + shell: bash + run: | + sudo apt-get install libboost-all-dev + + - name: Build and Run Boost-Test + shell: bash + run: | + cd ADOL-C/boost-test + mkdir build && cd build + cmake ../ -DADOLC_BASE=${{ github.workspace }} + make + ./boost-test-adolc + \ No newline at end of file diff --git a/ADOL-C/boost-test/README b/ADOL-C/boost-test/README.md similarity index 100% rename from ADOL-C/boost-test/README rename to ADOL-C/boost-test/README.md