-
Notifications
You must be signed in to change notification settings - Fork 4
82 lines (81 loc) · 2.79 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Build ImGuiRedux
on: push
jobs:
ImGuiRedux:
runs-on: windows-latest
strategy:
matrix:
platform: [Win32, Win64]
buildtype: [Release]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup premake
uses: abel0b/setup-premake@v2
with:
version: "5.0.0-beta1"
- name: Configure build
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.platform}}
- name: Build plugin
run: |
cd tools
premake5 vs2022
cd ../build
MsBuild ImGuiRedux.sln /property:Configuration=${{matrix.buildtype}} /p:Platform=${{matrix.platform}} /t:ImGuiRedux
- name: Upload plugin
uses: actions/upload-artifact@v3
with:
name: ImGuiRedux${{matrix.platform}}
path: build\bin\ImGuiRedux${{matrix.platform}}.cleo
- name: Archive plugin
uses: papeloto/action-zip@v1
with:
files: build\bin\ImGuiRedux${{matrix.platform}}.cleo
dest: ImGuiRedux${{matrix.platform}}.zip
- name: Add build to release tag
uses: ncipollo/release-action@v1
with:
artifacts: ImGuiRedux${{matrix.platform}}.zip
name: "${{matrix.platform}} Builds"
body: "This release is updated frequently with newer builds.\n\n- ImGuiReduxWin64 -> For CLEORedux (Supports 64 bit games)"
allowUpdates: true
tag: "${{matrix.platform}}-latest"
ImGuiCleo:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup premake
uses: abel0b/setup-premake@v2
with:
version: "5.0.0-beta1"
- name: Configure build
uses: ilammy/msvc-dev-cmd@v1
with:
arch: Win32
- name: Build plugin
run: |
cd tools
premake5 vs2022
cd ../build
MsBuild ImGuiRedux.sln /property:Configuration=ReleaseCleo /p:Platform=Win32 /t:ImGuiRedux
- name: Upload plugin
uses: actions/upload-artifact@v3
with:
name: ImGuiCleoWin32
path: build\bin\ImGuiCleoWin32.cleo
- name: Archive plugin
uses: papeloto/action-zip@v1
with:
files: build\bin\ImGuiCleoWin32.cleo
dest: ImGuiCleoWin32.zip
- name: Add build to release tag
uses: ncipollo/release-action@v1
with:
artifacts: ImGuiCleoWin32.zip
name: "Win32 Builds"
body: "This release is updated frequently with newer builds.\n\n- ImGuiCleoWin32 -> For CLEO5 (Supports GTA SA). Only required if you use ImGui in .cs scripts. \n- ImGuiReduxWin32 -> For CLEORedux (Supports 32 bit games). GTA SA Support is also included."
allowUpdates: true
tag: "Win32-latest"