-
Notifications
You must be signed in to change notification settings - Fork 6
68 lines (59 loc) · 1.7 KB
/
Copy pathWindows.yml
File metadata and controls
68 lines (59 loc) · 1.7 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
name: Windows Build (x86_64 & x86)
on:
push:
branches:
- "main"
paths-ignore:
- .github/workflows/FreeBSD.yml
- .github/workflows/Linux.yml
pull_request:
types: [edited, opened, synchronize]
paths-ignore:
- .github/workflows/FreeBSD.yml
- .github/workflows/Linux.yml
workflow_dispatch:
workflow_call:
jobs:
build:
name: Windows (${{ matrix.arch }})
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: [x86_64, x86]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Restore CMake cache
uses: actions/cache@v4
with:
path: |
build/.cmake
build/CMakeFiles
key: ${{ runner.os }}-cmake-${{ matrix.arch }}-${{ hashFiles('neo/CMakeLists.txt') }}
restore-keys: ${{ runner.os }}-cmake-${{ matrix.arch }}-
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Build the engine (x86_64)
if: matrix.arch == 'x86_64'
shell: cmd
run: |
if not exist build mkdir build
cd build
cmake -G "Visual Studio 17" -A x64 -DDEDICATED=ON ../neo/
cmake --build . --config Release
- name: Build the engine (x86)
if: matrix.arch == 'x86'
shell: cmd
run: |
if not exist build mkdir build
cd build
cmake -G "Visual Studio 17" -A Win32 -DDEDICATED=ON ../neo/
cmake --build . --config Release
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: prey2006-windows-${{ matrix.arch }}
path: output/windows/
compression-level: 6