Skip to content

Commit

Permalink
Setup ci (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud authored Nov 8, 2023
1 parent 1515eb7 commit 06475e5
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 8 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
pull_request:
branches: [ "master" ]
workflow_dispatch:

permissions:
contents: read

env:
UseMultiToolTask: true

jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
config: [Workflow]
platform: [Win32]

steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: microsoft/setup-msbuild@v1
- uses: Trass3r/setup-cpp@master
- name: Build
run: msbuild /m /p:Configuration=${{ matrix.config }} /p:Platform=${{ matrix.platform }} dinputto8.sln
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.config }} binaries
path: |
bin/${{ matrix.config }}/*
19 changes: 11 additions & 8 deletions dinputto8.sln
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28010.2041
# Visual Studio Version 17
VisualStudioVersion = 17.7.34221.43
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dinputto8", "dinputto8.vcxproj", "{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
Workflow|Win32 = Workflow|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Debug|x86.ActiveCfg = Debug|Win32
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Debug|x86.Build.0 = Debug|Win32
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Release|x86.ActiveCfg = Release|Win32
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Release|x86.Build.0 = Release|Win32
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Debug|Win32.ActiveCfg = Debug|Win32
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Debug|Win32.Build.0 = Debug|Win32
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Release|Win32.ActiveCfg = Release|Win32
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Release|Win32.Build.0 = Release|Win32
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Workflow|Win32.ActiveCfg = Workflow|Win32
{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}.Workflow|Win32.Build.0 = Workflow|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
38 changes: 38 additions & 0 deletions dinputto8.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Workflow|Win32">
<Configuration>Workflow</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{0C32F7D5-4261-4E29-BBCB-93364B10A7BC}</ProjectGuid>
Expand All @@ -28,6 +32,12 @@
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v141_xp</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Workflow|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v143</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
Expand All @@ -37,6 +47,9 @@
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Workflow|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<TargetName>dinput</TargetName>
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
Expand All @@ -47,6 +60,11 @@
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)bin\Intermediate\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Workflow|Win32'">
<TargetName>dinput</TargetName>
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)bin\Intermediate\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
Expand Down Expand Up @@ -91,6 +109,26 @@ cmd /c "@echo off &amp;&amp; cd /D ""$(ProjectDir)"" &amp;&amp; del Build.txt"
cmd /c "@echo off &amp;&amp; cd /D ""$(ProjectDir)"" &amp;&amp; type BuildNo.rc"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Workflow|Win32'">
<ClCompile>
<WarningLevel>Level4</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<ObjectFileName>$(SolutionDir)bin\Intermediate\$(Configuration)\Object\%(RelativeDir)</ObjectFileName>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PreprocessorDefinitions>_WINDLL;_WIN32_WINNT=0x0501;DINPUTTO8NOLOG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(ProjectDir);Include</AdditionalIncludeDirectories>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<ModuleDefinitionFile>dinput.def</ModuleDefinitionFile>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>Psapi.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PreBuildEvent />
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="External\Logging\Logging.cpp" />
<ClCompile Include="IDirectInputDeviceX.cpp" />
Expand Down

0 comments on commit 06475e5

Please sign in to comment.