Skip to content

Commit

Permalink
Merge pull request #21 from AdmiringWorm/gh-build-file
Browse files Browse the repository at this point in the history
(#19) Add action to build project
  • Loading branch information
gep13 authored Jan 16, 2024
2 parents 6cef08a + e0d3b91 commit 8c75a98
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Chocolatey Community Validation Builds

on:
# Trigger on pushes and pull requests
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# Build on Windows
windows-build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache Tools
uses: actions/cache@v3.0.11
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
- name: Build with .NET Framework
run: ./build.ps1 --verbosity=diagnostic --target=CI --testExecutionType=unit --shouldRunOpenCover=false
- name: Upload Windows build results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: windows-build-results
path: |
code_drop\TestResults\issues-report.html
code_drop\TestResults\NUnit\TestResult.xml
code_drop\TestCoverage\lcov.info
code_drop\TestCoverage\OpenCover.xml
code_drop\MsBuild.log
# TODO: Add step to upload codecov results?
2 changes: 1 addition & 1 deletion Get-ChocoDebugLibraries.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ if (!$NoBuild) {

Push-Location $ChocoSourceLocation
if (Test-Path "recipe.cake") {
& ./build.debug.bat --target='Run-ILMerge' --shouldRunTests=false --shouldRunAnalyze=false
& ./build.debug.bat --target='Run-ILMerge' --shouldRunAnalyze=false --testExecutionType=none
}
else {
& ./build.debug.bat
Expand Down

0 comments on commit 8c75a98

Please sign in to comment.