Merge pull request #1 from Przemek2122/dev #105
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 Linux | |
| on: [push, pull_request] | |
| jobs: | |
| build-linux: | |
| name: Build for Linux | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: [Release] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - name: Download Submodules | |
| run: | | |
| echo "Using git submodule update" | |
| git submodule update --init --recursive | |
| shell: bash | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| git wget curl tar zip unzip nano \ | |
| gcc g++ cmake make ninja-build pkg-config \ | |
| zlib1g-dev libssl-dev \ | |
| libasound2-dev nasm flex bison binutils \ | |
| libmysqlclient-dev libaio-dev libncurses-dev libreadline-dev uuid-dev libtirpc-dev liblz4-dev libedit-dev libsnappy-dev libbz2-dev \ | |
| libbrotli-dev libwebsockets-dev libuv1-dev libfreetype6-dev \ | |
| libx11-dev libxext-dev libxrandr-dev libxrender-dev libxinerama-dev libxi-dev libxcursor-dev libxfixes-dev \ | |
| libwayland-dev libxkbcommon-dev libegl1-mesa-dev libdecor-0-dev | |
| - name: Configure and Build | |
| run: | | |
| echo "Configuring Linux ${{ matrix.config }} build..." | |
| mkdir -p build/linux-${{ matrix.config }} | |
| cd build/linux-${{ matrix.config }} | |
| cmake -DCMAKE_BUILD_TYPE=${{ matrix.config }} \ | |
| -G "Ninja" \ | |
| ../../Project | |
| echo "Building Linux project..." | |
| cmake --build . --config ${{ matrix.config }} --parallel $(nproc) | |
| env: | |
| CI: true | |
| - name: Upload Linux Build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-linux-${{ matrix.config }} | |
| path: | | |
| build/linux-${{ matrix.config }}/** | |
| !build/linux-${{ matrix.config }}/_deps |