Added general compability for tableGenerator (SWTbahn-Game) #128
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| env: | |
| # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | |
| # 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 | |
| # See https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | |
| # for available images. | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install glib | |
| run: sudo apt update; sudo apt install -y --no-install-recommends libglib2.0-dev | |
| - name: Install cmocka | |
| run: sudo apt update; sudo apt install -y --no-install-recommends libyaml-dev libcmocka-dev | |
| - name: Build libbidib | |
| run: git clone --depth 1 https://github.com/uniba-swt/libbidib.git; cd libbidib; mkdir bin; cd bin; cmake ..; make -j; sudo make -j install | |
| - name: Install pam, gnutls | |
| run: sudo apt update; sudo apt install -y --no-install-recommends libpam0g-dev libgnutls28-dev | |
| - name: Build libonion | |
| run: git clone --depth 1 https://github.com/uniba-swt/onion.git; cd onion; mkdir bin; cd bin; cmake -DONION_EXAMPLES=false -DONION_USE_TESTS=false ..; make -j onion; make -j onion_static; sudo make -j install | |
| - name: Install flex-dev, graphviz | |
| run: sudo apt update; sudo apt install -y libfl-dev graphviz | |
| - name: Install gcrypt | |
| run: sudo apt update; sudo apt install -y --no-install-recommends libgcrypt20-dev | |
| - name: Install forecc | |
| run: git clone --depth 1 https://github.com/PRETgroup/ForeC.git; cd ForeC/ForeC\ Compiler; make -j; echo "FOREC_COMPILER_PATH=`pwd`" >> $GITHUB_ENV | |
| - 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 | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| run: cd server; cmake -B ${{github.workspace}}/server/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
| - name: Build | |
| # Build your program with the given configuration | |
| run: FOREC_COMPILER_PATH="${{ env.FOREC_COMPILER_PATH }}/"; PATH=${PATH}:${FOREC_COMPILER_PATH}; cmake --build ${{github.workspace}}/server/build --config ${{env.BUILD_TYPE}} | |
| - name: Test | |
| working-directory: ${{github.workspace}}/server/build | |
| # Execute tests defined by the CMake configuration. | |
| # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | |
| run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |