-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.73 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI Build
on:
push:
branches: [ "master", "feature/ci" ]
pull_request:
branches: [ "master" ]
jobs:
docker-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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@v4
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: 'client/red4ext/vcpkg.json'
vcpkgGitCommitId: '16ee2ecb31788c336ace8bb14c21801efb6836e4'
- name: Generate build output folder
run: mkdir '${{ github.workspace }}\client\red4ext\build\ninja-vcpkg'
- name: Run CMake with vcpkg.json manifest
uses: lukka/run-cmake@v10
with:
cmakeListsTxtPath: '${{ github.workspace }}/client/red4ext/CMakeLists.txt'
configurePreset: ninja-vcpkg
buildPreset: ninja-vcpkg
buildPresetAdditionalArgs: '[`--config Release`]'
- name: List $RUNNER_WORKSPACE after build
run: find $RUNNER_WORKSPACE
shell: bash
- uses: actions/upload-artifact@v4
with:
name: RED4ext Plugin
path: client/red4ext/build/ninja-vcpkg/src/*.dll