-
Notifications
You must be signed in to change notification settings - Fork 802
75 lines (63 loc) · 2.05 KB
/
Windows_MSVC_x64.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Windows MSVC x64
on:
push:
branches:
- master
paths-ignore:
- '*.md'
- 'docs/**'
pull_request:
types: [ opened, synchronize ]
paths-ignore:
- '*.md'
- 'docs/**'
permissions:
contents: write
env:
VCPKG_FEATURE_FLAGS: dependencygraph
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ccache
uses: hendrikmuhs/[email protected]
- name: Install latest CMake
uses: lukka/get-cmake@latest
- name: Restore or setup vcpkg
uses: lukka/[email protected]
with:
vcpkgGitCommitId: '813a241fb83adad503a391facaa6aa634631accc'
- name: Fetch test data
run: |
mkdir build-ninja-vcpkg-relwithdebinfo
Invoke-WebRequest -Uri "https://github.com/diasurgical/devilutionx-assets/releases/download/v2/spawn.mpq" -OutFile "build-ninja-vcpkg-relwithdebinfo/spawn.mpq" -Resume
- name: Get CMakePresets.json
run: cp Packaging/windows/CMakePresets.json .
- name: Run CMake consuming CMakePresets.json and vcpkg.json by mean of vcpkg.
uses: lukka/run-cmake@v10
with:
configurePreset: 'ninja-vcpkg-relwithdebinfo'
buildPreset: 'ninja-vcpkg-relwithdebinfo'
testPreset: 'ninja-vcpkg-relwithdebinfo'
- name: Upload-Package
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v4
with:
name: devilutionx.exe
path: |
build-ninja-vcpkg-relwithdebinfo/devilutionx.exe
build-ninja-vcpkg-relwithdebinfo/bz2.dll
build-ninja-vcpkg-relwithdebinfo/fmt.dll
build-ninja-vcpkg-relwithdebinfo/libpng16.dll
build-ninja-vcpkg-relwithdebinfo/libsodium.dll
build-ninja-vcpkg-relwithdebinfo/SDL2.dll
build-ninja-vcpkg-relwithdebinfo/SDL2_image.dll
build-ninja-vcpkg-relwithdebinfo/zlib1.dll