Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile and release executable #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
vs-version: '14.0'

- name: Setup NuGet
uses: NuGet/[email protected]

- 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 artifact
uses: actions/upload-artifact@v2
with:
name: LoopbackCapture-Win32
path: "${{github.workspace}}/bin/x86/Release/LoopbackCapture.exe"

- name: GitHub release with artifact
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"