Skip to content

Commit 314e651

Browse files
authored
Merge pull request #28 from nutdotnet/workflows
Ready to deploy debug building workflow.
2 parents 06981a0 + cd0bdfc commit 314e651

File tree

114 files changed

+8122
-1453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+8122
-1453
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: build-debug
2+
3+
defaults:
4+
run:
5+
working-directory: WinNUT_V2
6+
7+
on:
8+
push:
9+
workflow_dispatch:
10+
pull_request:
11+
branches: [ main, Dev-2.2 ] # Build for dev primarily, probably don't need main...?
12+
paths:
13+
- '**.vb'
14+
- '**.vbproj'
15+
16+
env:
17+
DOTNET_VERSION: '4.7.2' # The .NET SDK version to use
18+
SLN_FILE: WinNUT_V2.sln
19+
DEBUG_OUTPUT: WinNUT_V2/WinNUT-Client/bin/Debug
20+
21+
jobs:
22+
build:
23+
24+
name: debug-build-${{ matrix.os }}
25+
runs-on: ${{ matrix.os }}
26+
strategy:
27+
matrix:
28+
os: [windows-2019] # Should have MSBuild.
29+
steps:
30+
# Make MSBuild available from $PATH.
31+
- name: setup-msbuild
32+
uses: microsoft/setup-msbuild@v1.1
33+
34+
- name: Checkout Code
35+
uses: actions/checkout@v3
36+
37+
- name: Restore Packages
38+
run: msbuild -t:restore
39+
40+
# msbuild cannot handle .vdproj Installer projects, so only build debug for now.
41+
- name: Build solution
42+
run: |
43+
Write-Output "::echo::on"
44+
msbuild.exe $env:SLN_FILE -p:Configuration=Debug
45+
46+
# For now, let msbuild continue autogenerating assembly versions and base everything off of that.
47+
- name: Get AssemblyVersion generated by msbuild
48+
id: getversion
49+
uses: berglie/assembly-version/get@v1
50+
with:
51+
directory: ${{ env.DEBUG_OUTPUT }}
52+
53+
- name: Upload Artifact
54+
uses: actions/upload-artifact@v3
55+
with:
56+
name: ${{ format('WinNUT-Client-debugbuild-v{0}', steps.getversion.outputs.version) }}
57+
if-no-files-found: error
58+
path: ${{ env.DEBUG_OUTPUT }}
59+

WinNUT_V2/.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
###############################
33
# Core EditorConfig Options #
44
###############################
5+
root = true
56
# All files
67
[*]
78
indent_style = space
8-
file_header_template = WinNUT is a NUT windows client for monitoring your ups hooked up to your favorite linux server.\nCopyright (C) 2019-2021 Gawindx (Decaux Nicolas)\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the\nGNU General Public License as published by the Free Software Foundation, either version 3 of the\nLicense, or any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\neven the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nGeneral Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program.\nIf not, see https://www.gnu.org/licenses/.\n
9+
file_header_template = WinNUT-Client is a NUT windows client for monitoring your ups hooked up to your favorite linux server.\nCopyright (C) 2019-2021 Gawindx (Decaux Nicolas)\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the\nGNU General Public License as published by the Free Software Foundation, either version 3 of the\nLicense, or any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without\neven the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nGeneral Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program.\nIf not, see https://www.gnu.org/licenses/.\n
910
# Code files
1011
[*.{cs,csx,vb,vbx}]
1112
indent_size = 4

WinNUT_V2/AGauge_mod/AGauge.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -10,8 +10,9 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>System.Windows.Forms</RootNamespace>
1212
<AssemblyName>AGauge</AssemblyName>
13-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
15+
<TargetFrameworkProfile />
1516
</PropertyGroup>
1617
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1718
<DebugSymbols>true</DebugSymbols>
@@ -22,6 +23,7 @@
2223
<ErrorReport>prompt</ErrorReport>
2324
<WarningLevel>4</WarningLevel>
2425
<RegisterForComInterop>false</RegisterForComInterop>
26+
<Prefer32Bit>false</Prefer32Bit>
2527
</PropertyGroup>
2628
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2729
<DebugType>pdbonly</DebugType>
@@ -30,6 +32,7 @@
3032
<DefineConstants>TRACE</DefineConstants>
3133
<ErrorReport>prompt</ErrorReport>
3234
<WarningLevel>4</WarningLevel>
35+
<Prefer32Bit>false</Prefer32Bit>
3336
</PropertyGroup>
3437
<ItemGroup>
3538
<Reference Include="System" />

0 commit comments

Comments
 (0)