From 8a5bf25de4c372f0eac7b426001dd3dfdf762c65 Mon Sep 17 00:00:00 2001 From: 3DJ <71472458+ThreeDeeJay@users.noreply.github.com> Date: Tue, 27 Sep 2022 09:40:10 -0400 Subject: [PATCH 1/3] Compile and release executable Added GitHub Actions workflow to compile and release executable artifact --- .github/workflows/Release.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/Release.yml diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 0000000..2153af7 --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,48 @@ +name: CI + +on: + push: + + workflow_dispatch: + +jobs: + build: + runs-on: windows-2019 + + steps: + - uses: actions/checkout@v3 + + - name: Install Windows 8.1 SDK + shell: powershell + run: | + Invoke-WebRequest -Method Get -Uri https://go.microsoft.com/fwlink/p/?LinkId=323507 -OutFile sdksetup.exe -UseBasicParsing + Start-Process -Wait sdksetup.exe -ArgumentList "/q", "/norestart", "/features", "OptionId.WindowsDesktopSoftwareDevelopmentKit", "OptionId.NetFxSoftwareDevelopmentKit" + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.1 + with: + vs-version: '14.0' + + - name: Setup NuGet + uses: NuGet/setup-nuget@v1.0.6 + + - name: Restore nuget + run: nuget restore win32\cpp\LoopbackCapture.vcxproj + + - name: Build Win32 + run: msbuild win32\cpp\LoopbackCapture.vcxproj /p:Configuration=Release /p:Platform=x86 /t:Clean,Build + + - name: Upload Win32 + uses: actions/upload-artifact@v2 + with: + name: LoopbackCapture-Win32 + path: "${{github.workspace}}/bin/x86/Release/LoopbackCapture.exe" + + - name: GitHub release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{secrets.GITHUB_TOKEN}}" + automatic_release_tag: "latest" + prerelease: false + title: "LoopbackCapture" + files: "D:/a/LoopbackCapture/LoopbackCapture/bin/x86/Release/LoopbackCapture.exe" From ee319bba915d95e5adc26a5abdebe305bf168730 Mon Sep 17 00:00:00 2001 From: 3DJ <71472458+ThreeDeeJay@users.noreply.github.com> Date: Wed, 28 Sep 2022 06:26:57 -0400 Subject: [PATCH 2/3] Squashed commit of the following: commit 273e24bc15511b4ab6f3be51d4588f72213c2eab Author: 3DJ <71472458+ThreeDeeJay@users.noreply.github.com> Date: Wed Sep 28 06:21:13 2022 -0400 Update Release.yml --- .github/workflows/Release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 2153af7..b9aba9f 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -27,7 +27,7 @@ jobs: uses: NuGet/setup-nuget@v1.0.6 - name: Restore nuget - run: nuget restore win32\cpp\LoopbackCapture.vcxproj + run: nuget install build\packages.config - name: Build Win32 run: msbuild win32\cpp\LoopbackCapture.vcxproj /p:Configuration=Release /p:Platform=x86 /t:Clean,Build From 5ca82604862ff06280fd037d1b0666f413e14d6f Mon Sep 17 00:00:00 2001 From: 3DJ <71472458+ThreeDeeJay@users.noreply.github.com> Date: Wed, 28 Sep 2022 06:31:35 -0400 Subject: [PATCH 3/3] Update Release.yml --- .github/workflows/Release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index b9aba9f..93ace4d 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -26,19 +26,19 @@ jobs: - name: Setup NuGet uses: NuGet/setup-nuget@v1.0.6 - - name: Restore nuget + - name: Install NuGet packages run: nuget install build\packages.config - name: Build Win32 run: msbuild win32\cpp\LoopbackCapture.vcxproj /p:Configuration=Release /p:Platform=x86 /t:Clean,Build - - name: Upload Win32 + - name: Upload artifact uses: actions/upload-artifact@v2 with: name: LoopbackCapture-Win32 path: "${{github.workspace}}/bin/x86/Release/LoopbackCapture.exe" - - name: GitHub release + - name: GitHub release with artifact uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{secrets.GITHUB_TOKEN}}"