diff --git a/.github/workflows/ci_basic.yaml b/.github/workflows/ci_basic.yaml index 758e43d..2d8a441 100644 --- a/.github/workflows/ci_basic.yaml +++ b/.github/workflows/ci_basic.yaml @@ -1,4 +1,4 @@ -name: Basic CI ubuntu +name: Basic CI ubuntu communicator on: [push, pull_request, workflow_dispatch] diff --git a/.github/workflows/ci_basic_server.yaml b/.github/workflows/ci_basic_server.yaml new file mode 100644 index 0000000..81fd109 --- /dev/null +++ b/.github/workflows/ci_basic_server.yaml @@ -0,0 +1,33 @@ +name: Basic CI ubuntu server + +on: [push, pull_request, workflow_dispatch] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + BUILD_PATH: ${{github.workspace}}/server/build + SOURCE: ${{github.workspace}}/server + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install Qt + uses: jurplel/install-qt-action@v3 # Installs Qt. + with: + version: '6.2.1' # The version of Qt to install. + + - name: Setup cmake + uses: jwlawson/actions-setup-cmake@v1.14 + with: + cmake-version: '3.22.1' + + - name: Configure CMake + run: cmake -B ${{env.BUILD_PATH}} -S ${{env.SOURCE}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + # Build your program with the given configuration + run: cmake --build ${{env.BUILD_PATH}} --config ${{env.BUILD_TYPE}}