Merge branch 'kaffeine/0.7' into kaffeine/server #310
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: Build with scripts | |
| on: | |
| push: | |
| paths-ignore: | |
| - "data/maps/**" | |
| jobs: | |
| build: | |
| name: ${{ matrix.config.name }} | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| tests: [true] | |
| config: | |
| - { | |
| name: "Ubuntu 22.04 GCC", | |
| os: ubuntu-22.04, | |
| cc: "gcc", cxx: "g++" | |
| } | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: "scripts" | |
| repository: "infclass/infclass-scripts" | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: "scripts/ci/sources" | |
| - name: Prepare Linux | |
| if: contains(matrix.config.os, 'ubuntu') | |
| run: | | |
| sudo apt-get update -y | |
| - name: Install the dependencies | |
| run: ./scripts/scripts/prepare-system.sh | |
| - name: Add lua | |
| if: contains(matrix.config.os, 'ubuntu') | |
| run: | | |
| sudo apt-get install libluajit-5.1-dev -y | |
| - name: Add the CI build configuration | |
| run: | | |
| cp scripts/ci/sources/.github/workflows/ci.conf scripts/conf | |
| - name: Build the server | |
| run: ./scripts/scripts/build.sh ci | |
| - name: Test | |
| if: matrix.tests | |
| working-directory: ${{github.workspace}}/scripts/ci/install | |
| # Execute tests defined by the CMake configuration. | |
| # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | |
| run: ctest -C Release --output-on-failure |