Skip to content

and now

and now #62

Workflow file for this run

name: MSBuild
on: [push]
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: install wget
run: choco install wget
- name: install VCExpress 2010
run: |
wget "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe"
vcredist_x64.exe /quiet /norestart
shell: cmd
- name: Setup Environment
run: |
"echo ::add-path::C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
"echo ::add-path::C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN"
"echo ::add-path::C:\Windows\Microsoft.NET\Framework\v4.0.30319"
"echo ::set-env name=LIB::C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB;%LIB%"
"echo ::set-env name=LIB::C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Lib;%LIB%"
"echo ::set-env name=LIB::C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib;%LIB%"
"echo ::set-env name=INCLUDE::C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include;%INCLUDE%"
- name: Start VCTools
run: |
dir "C:\Program Files (x86)"
dir "C:\Program Files (x86)\Microsoft Visual Studio 10.0"
dir "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC"
'call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86'
shell: cmd
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Upload release artifacts
uses: actions/upload-artifact@v3
with:
name: release
path: Release/int2ssl.exe
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: Release/int2ssl.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}