-
Notifications
You must be signed in to change notification settings - Fork 33
49 lines (40 loc) · 1.54 KB
/
msvc_cmake.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
name: CMake
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
toolset: [v142]
configuration: [Release]
platform: [Win32, x64]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Download hadesmem release
run: |
Invoke-WebRequest https://github.com/namreeb/hadesmem/releases/download/v1.7.0/hadesmem-${{ matrix.toolset }}-${{ matrix.configuration }}-${{ matrix.platform }}.zip -OutFile hadesmem.zip
Expand-Archive -Path hadesmem.zip -DestinationPath .
- name: Download Boost
run: |
Invoke-WebRequest https://boostorg.jfrog.io/artifactory/main/release/1.73.0/source/boost_1_73_0.zip -OutFile boost.zip
Expand-Archive -Path boost.zip -DestinationPath .
dir
- name: Configure CMake
run: cmake -A ${{ matrix.platform }} -B ${{github.workspace}}/build -DHADESMEM_ROOT=hadesmem-${{ matrix.toolset }}-${{ matrix.configuration }}-${{ matrix.platform }} -DBOOST_ROOT=boost_1_73_0 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/artifact
- name: Build
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
cmake --install ${{github.workspace}}/build
- name: Publish artifact
uses: actions/upload-artifact@v3
with:
name: wowreeb-${{ github.ref_name }}
path: ${{ github.workspace }}/artifact/**/*