Skip to content

Commit

Permalink
U/sgriffin/actions (#72)
Browse files Browse the repository at this point in the history
* Create dotnet-desktop.yml

* Create main.yml (#68) (#69)

Add empty action

* Update main.yml

* Delete dotnet-desktop.yml

* add workflow dispatch

* fix yaml

* try something different

* add solution to build

* change action name

* try different build

* install fiddler for dependencies

* fix .net version

* add .net developer pack

* fix dev pack download url

* try 4.6.1

* publish build artifacts

* update to latset upload action
  • Loading branch information
stephenegriffin authored Aug 25, 2023
1 parent 07a1031 commit 8ce5a09
Showing 1 changed file with 52 additions and 6 deletions.
58 changes: 52 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,56 @@
# basic on demand action that does nothing yet
name: Build
# 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: Build MAPIInspector

on:
workflow_dispatch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: windows-latest

build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Download and Install .NET Framework 4.6.1 Developer Pack
shell: pwsh
run: |
# Download the .NET Framework 4.6.1 Developer Pack
Invoke-WebRequest -Uri https://go.microsoft.com/fwlink/?linkid=2099470 -OutFile NDP461-DevPack-KB3105179-ENU.exe
# Install the Developer Pack silently
Start-Process -FilePath NDP461-DevPack-KB3105179-ENU.exe -ArgumentList "/q" -Wait
- name: Download and Install Fiddler
shell: pwsh
run: |
# Define the URL for the Fiddler installer (check for the latest version on the Telerik website)
$FiddlerInstallerUrl = "https://telerik-fiddler.s3.amazonaws.com/fiddler/FiddlerSetup.exe"
# Define the path where you want to save the installer
$InstallerPath = "$env:USERPROFILE\Downloads\FiddlerSetup.exe"
# Download Fiddler installer
Invoke-WebRequest -Uri $FiddlerInstallerUrl -OutFile $InstallerPath
# Install Fiddler silently
Start-Process -FilePath $InstallerPath -ArgumentList "/S" -Wait
- name: "Build"
shell: pwsh
run: |
$path = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath
& $path\MSBuild\Current\Bin\amd64\msbuild.exe /m /p:Configuration="Release" ./MAPIInspector/Source/MAPIInspector.sln
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
.\MAPIInspector\Source\bin\Release\MAPIFiddlerInspector.dll
.\MAPIInspector\Source\bin\Release\MAPIFiddlerInspector.pdb

0 comments on commit 8ce5a09

Please sign in to comment.