-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
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 | ||
|
This file was deleted.
Oops, something went wrong.