diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d4b410a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build Worker + run: dotnet build AuraScheduler.Worker/AuraScheduler.Worker.csproj --configuration Release --no-restore + - name: Build UI + run: dotnet build AuraScheduler.UI/AuraScheduler.UI.csproj --configuration Release --no-restore + - name: Build Test Project + run: dotnet build AuraScheduler.Worker.Tests/AuraScheduler.Worker.Tests.csproj --configuration Release --no-restore + - name: Test + run: dotnet test --configuration Release + - name: Build Setup project + run: dotnet build Setup/Setup.wixproj --configuration Release --no-restore diff --git a/AuraScheduler.Worker.Tests/AuraScheduler.Worker.Tests.csproj b/AuraScheduler.Worker.Tests/AuraScheduler.Worker.Tests.csproj index 832c708..55cfaab 100644 --- a/AuraScheduler.Worker.Tests/AuraScheduler.Worker.Tests.csproj +++ b/AuraScheduler.Worker.Tests/AuraScheduler.Worker.Tests.csproj @@ -1,27 +1,28 @@ - + - - net7.0 - enable - enable + + net7.0 + enable + enable - false - true - AnyCPU;x64 - + false + true + x64 + x64 + - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + - - - + + + diff --git a/AuraScheduler.sln b/AuraScheduler.sln index 7ececfa..c0e08b2 100644 --- a/AuraScheduler.sln +++ b/AuraScheduler.sln @@ -20,6 +20,13 @@ Project("{B7DD6F7E-DEF8-4E67-B5B7-07EF123DB6F0}") = "Setup", "Setup\Setup.wixpro EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuraScheduler.UI", "AuraScheduler.UI\AuraScheduler.UI.csproj", "{9C45A10E-7618-46E2-A273-992B2315CA99}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "github", "github", "{DF13FA0D-6301-41B9-8C1D-922047FB097E}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{D4A0CA6D-294D-4D6E-82A4-CACB2268B76E}" + ProjectSection(SolutionItems) = preProject + .github\workflows\build.yml = .github\workflows\build.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 @@ -45,6 +52,9 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {D4A0CA6D-294D-4D6E-82A4-CACB2268B76E} = {DF13FA0D-6301-41B9-8C1D-922047FB097E} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {EDC4F8D3-6A38-411E-A07D-066ED73EAC29} EndGlobalSection diff --git a/README.md b/README.md index a7262f1..c98dd90 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ + # aura-scheduler Uses the Asus AURA SDK to turn LEDs on/off on a schedule +[![.NET](https://github.com/theyo/aura-scheduler/actions/workflows/build.yml/badge.svg)](https://github.com/theyo/aura-scheduler/actions/workflows/build.yml) + + # Requirements The Asus AURA SDK `Interop.AuraServiceLib.dll` needs to be present on the system. Normally this dll is installed with ASUS AURA (through ARMOURY CRATE). diff --git a/Setup/AURASchedulerUIComponents.wxs b/Setup/AURASchedulerUIComponents.wxs index d229727..143067e 100644 --- a/Setup/AURASchedulerUIComponents.wxs +++ b/Setup/AURASchedulerUIComponents.wxs @@ -2,7 +2,7 @@ - + diff --git a/Setup/Setup.wixproj b/Setup/Setup.wixproj index 030484f..288c8c1 100644 --- a/Setup/Setup.wixproj +++ b/Setup/Setup.wixproj @@ -1,10 +1,11 @@  - - Version=$(BuildVersion) - AURAScheduler.$(MSBuildProjectName) - x86;x64 - - - - + + Version=$(BuildVersion) + AURAScheduler.$(MSBuildProjectName) + x64 + x64 + + + + \ No newline at end of file