Skip to content

Commit d0143cb

Browse files
authored
Merge pull request #2 from s1204IT/main
MSBuild でビルド可能に
2 parents da0b9f8 + 2a2b3f8 commit d0143cb

File tree

5 files changed

+57
-2
lines changed

5 files changed

+57
-2
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
path:
6+
- 'sources/*'
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: Build
13+
runs-on: windows-latest
14+
steps:
15+
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Add msbuild to PATH
20+
uses: microsoft/setup-msbuild@v2
21+
with:
22+
msbuild-architecture: x64
23+
24+
- name: MSBuild
25+
working-directory: sources
26+
run: |
27+
msbuild /t:Restore
28+
msbuild -property:Configuration=Debug
29+
Write-Output "commit=$("${{ github.sha }}".Substring(0,7))"| Out-File -FilePath $Env:GITHUB_ENV -Encoding UTF8 -Append
30+
31+
- name: Upload
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: gff@${{ env.commit }}
35+
path: sources/bin/Debug/net472/gff.exe
36+
if-no-files-found: error

icons/.gitkeep

Lines changed: 0 additions & 1 deletion
This file was deleted.

sources/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bin/
2+
obj/

sources/.gitkeep

Lines changed: 0 additions & 1 deletion
This file was deleted.

sources/gff.csproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net472</TargetFramework>
6+
<AssemblyName>gff</AssemblyName>
7+
<ApplicationIcon>..\icons\icon.ico</ApplicationIcon>
8+
<LangVersion>latest</LangVersion>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<None Include="App.config" />
13+
</ItemGroup>
14+
15+
<ItemGroup>
16+
<Reference Include="System.Management" />
17+
</ItemGroup>
18+
19+
</Project>

0 commit comments

Comments
 (0)