Skip to content

Commit 10f2af8

Browse files
committed
add a win32 build rule
1 parent dd70ec2 commit 10f2af8

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed

.github/workflows/ccpp.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: C/C++ CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "*" ]
48

59
jobs:
610
build:
@@ -22,3 +26,26 @@ jobs:
2226
run: make check
2327
- name: make distcheck
2428
run: make distcheck
29+
30+
build-windows:
31+
env:
32+
SOLUTION_FILE_PATH: .
33+
BUILD_CONFIGURATION: Release
34+
35+
runs-on: windows-latest
36+
37+
steps:
38+
- uses: actions/checkout@v3
39+
40+
- name: Add MSBuild to PATH
41+
uses: microsoft/setup-msbuild@v1.0.2
42+
43+
- name: Restore NuGet packages
44+
working-directory: ${{env.GITHUB_WORKSPACE}}
45+
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
46+
47+
- name: Build
48+
working-directory: ${{env.GITHUB_WORKSPACE}}
49+
run: |
50+
msbuild /m /p:platform=x64 /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
51+
msbuild /m /p:platform=x86 /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

Libhangul.sln

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28307.960
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2DA4F60C-0EED-4AE9-823D-C8BC15FA46ED}") = "Libhangul", "libhangul.vcxproj", "{83381EEE-8813-47E6-BDCB-4F9882E81882}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
12+
Release|x64 = Release|x64
13+
Release|x86 = Release|x86
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Debug|x64.ActiveCfg = Debug|x64
17+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Debug|x64.Build.0 = Debug|x64
18+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Debug|x64.Deploy.0 = Debug|x64
19+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Debug|x86.ActiveCfg = Debug|Win32
20+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Debug|x86.Build.0 = Debug|Win32
21+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Debug|x86.Deploy.0 = Debug|Win32
22+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Release|x64.ActiveCfg = Release|x64
23+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Release|x64.Build.0 = Release|x64
24+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Release|x64.Deploy.0 = Release|x64
25+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Release|x86.ActiveCfg = Release|Win32
26+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Release|x86.Build.0 = Release|Win32
27+
{83381EEE-8813-47E6-BDCB-4F9882E81882}.Release|x86.Deploy.0 = Release|Win32
28+
EndGlobalSection
29+
GlobalSection(SolutionProperties) = preSolution
30+
HideSolutionNode = FALSE
31+
EndGlobalSection
32+
GlobalSection(ExtensibilityGlobals) = postSolution
33+
SolutionGuid = {3DA4F60C-0EED-4AE9-823D-C8BC15FA46ED}
34+
EndGlobalSection
35+
EndGlobal

0 commit comments

Comments
 (0)