forked from Mr-X-GTA/YimMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.41 KB
/
ci.yml
File metadata and controls
58 lines (48 loc) · 1.41 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
name: CI
on:
pull_request:
paths:
- src/**
- cmake/**
- CMakeLists.txt
- .github/workflows/ci.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: windows-latest
name: CI
steps:
- uses: actions/checkout@v4
- name: Check CMake version
run: cmake --version
- name: Setup MSVC environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Generate CMake project
run: cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -D OPTIMIZE=YES -S. -Bbuild -G Ninja
- name: Build 64bit release DLL
run: cmake --build ./build --config RelWithDebInfo --target YimMenu --
- name: Check if DLL got built
run: if (-Not (Test-Path -path "build/YimMenu.dll")) {throw 1}
- name: Rename DLL to YimMenu-dev-{GITHUB_SHA}.dll
run: |
del YimMenu-dev-*.dll
del YimMenu-dev-*.pdb
ren YimMenu.dll YimMenu-dev-${{github.sha}}.dll
ren YimMenu.pdb YimMenu.pdb
working-directory: build/
- name: Upload Artifact (dll)
uses: actions/upload-artifact@v4
with:
name: binary
path: |
build/YimMenu-dev-*.dll
- name: Upload Artifact (pdb)
uses: actions/upload-artifact@v4
with:
name: pdb
path: |
build/YimMenu.pdb