Skip to content

Commit

Permalink
try with eclipseclp
Browse files Browse the repository at this point in the history
  • Loading branch information
vmatare authored and Victor Mataré committed Mar 19, 2023
1 parent 1ca9e9d commit ff9187e
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: CMake

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
#push:
# branches: [ "master" ]
#pull_request:
# branches: [ "master" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
Expand All @@ -16,17 +17,33 @@ jobs:
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

env:
VERSION: 6.1_229

steps:
- uses: actions/checkout@v3

- name: install-deps
run: sudo apt install libboost-all-dev
run: sudo apt install libboost-all-dev wget

- name: install eclipse-clp
run: |
wget https://github.com/vmatare/eclipseclp/blob/main/eclipse_basic-$VERSION.tgz?raw=true \
-O eclipse_basic.tar.gz
mkdir eclipse
tar -C eclipse -xzf eclipse_basic.tar.gz
( cd eclipse; echo -e "\n\n\n\n\n\n\n" | ./RUNME )
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_READYLOG_SEMANTICS=FALSE -DBUILD_TESTING=FALSE
run: |
export PATH=$PATH:$PWD/eclipse/bin/x86_64_linux/eclipse
cmake -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DBUILD_READYLOG_SEMANTICS=TRUE \
-DBUILD_TESTING=TRUE \
- name: Build
# Build your program with the given configuration
Expand Down

0 comments on commit ff9187e

Please sign in to comment.