Skip to content

Commit

Permalink
Add x64 in github actions, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed May 4, 2022
1 parent afd6876 commit 59a2c04
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on: push
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
platform: [Win32, Win64]
steps:
- name: Checkout
uses: actions/[email protected]
Expand All @@ -13,29 +16,29 @@ jobs:
- name: Configure build
uses: ilammy/msvc-dev-cmd@v1
with:
arch: Win32
arch: ${{matrix.platform}}
- name: Build plugin
run: |
cd tools
premake5 vs2022
cd ../build
MsBuild ImGuiRedux.sln /property:Configuration=Release /p:Platform="Win32" /t:ImGuiRedux
MsBuild ImGuiRedux.sln /property:Configuration=Release /p:Platform=${{matrix.platform}} /t:ImGuiRedux
- name: Upload plugin
uses: actions/upload-artifact@v3
with:
name: ImGuiRedux
path: build\bin\ImGuiRedux.cleo
name: ImGuiRedux${{matrix.platform}}
path: build\bin\ImGuiRedux${{matrix.platform}}.cleo
- name: Archive plugin
uses: papeloto/action-zip@v1
with:
files: build\bin\ImGuiRedux.cleo
dest: ImGuiRedux.zip
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.zip
name: "ImGuiRedux Latest"
artifacts: ImGuiRedux${{matrix.platform}}.zip
name: "ImGuiRedux ${{matrix.platform}}"
body: "Secondary tag for [this release](https://github.com/user-grinch/ImGuiRedux/releases/latest) of ImGuiRedux. This release is updated regularly"
allowUpdates: true
tag: "x86-latest"
tag: "${{matrix.platform}}-latest"

2 changes: 1 addition & 1 deletion src/pch.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#define IMGUI_REDUX_VERSION 1.0f
#define IMGUI_REDUX_VERSION 1.1f

#include "cleo_redux_sdk.h"
#include "imgui.h"
Expand Down
4 changes: 2 additions & 2 deletions tools/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ workspace "ImGuiRedux"

project "ImGuiRedux"
filter { "platforms:Win32" }
targetname "ImGuiRedux"
targetname "ImGuiReduxWin32"
architecture "x86"
links {
"d3d9",
Expand All @@ -42,7 +42,7 @@ project "ImGuiRedux"
}

filter { "platforms:Win64" }
targetname "ImGuiRedux64"
targetname "ImGuiReduxWin64"
architecture "x64"
links {
"d3d9",
Expand Down

0 comments on commit 59a2c04

Please sign in to comment.