Skip to content

Commit

Permalink
CI: Also add a client build
Browse files Browse the repository at this point in the history
  • Loading branch information
MeFisto94 committed Dec 23, 2023
1 parent 0255052 commit 66f19e8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 22 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI Build
on:
push:
branches: [ "master", "feature/ci" ]
pull_request:
branches: [ "master" ]

jobs:
docker-server:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Copying the protocol files
run: cp -rv shared/protocol server/protocol
- uses: satackey/[email protected]
continue-on-error: true
- name: Build the Docker image
working-directory: server
run: docker build . --file Dockerfile --tag cyberverse-server:$(date +%s)

client:
runs-on: windows-latest

env:
VCPKG_DEFAULT_TRIPLET: x64-windows
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: lukka/get-cmake@latest
- name: Setup vcpkg
uses: lukka/run-vcpkg@main
id: runvcpkg
with:
# The vcpkg.json file, which will be part of cache key computation.
vcpkgJsonGlob: 'server/Native/vcpkg.json'
- name: Run CMake with vcpkg.json manifest
uses: lukka/run-cmake@v10
with:
cmakeListsTxtPath: '${{ github.workspace }}/server/Native/CMakeLists.txt'
configurePreset: ninja-multi-vcpkg
buildPreset: ninja-multi-vcpkg
buildPresetAdditionalArgs: '[`--config Release`]'
- name: List $RUNNER_WORKSPACE after build
run: find $RUNNER_WORKSPACE
shell: bash

22 changes: 0 additions & 22 deletions .github/workflows/docker-server.yml

This file was deleted.

0 comments on commit 66f19e8

Please sign in to comment.