Skip to content

allow a standard translation project to have a 'back translation' pro… #90

allow a standard translation project to have a 'back translation' pro…

allow a standard translation project to have a 'back translation' pro… #90

Workflow file for this run

# Build silconverters and run tests
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: "./SEC VS2019.sln"
jobs:
build-windows:
runs-on: windows-2019 # [windows-latest] # VS 2022 no longer automatically works w/ the non-‘latest’ version of the C++ bits
strategy:
# Keep building other jobs even if another fails, to show what _is_ still working.
fail-fast: false
matrix:
build_configuration: ["Debug", "Release"]
build_platform: ['x64', 'x86']
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0 # fetch full history for GitVersion
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: setup-msbuild
uses: microsoft/setup-msbuild@v2
- name: Fetch nuget dependecies
run: nuget restore "${{env.SOLUTION_FILE_PATH}}"
# run VsDevCmd.bat so we can get the path to tlbexp.exe for the SpellFixerEc proj
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.build_platform }}
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like build_platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{matrix.build_configuration}} /p:Platform=${{ matrix.build_platform }} "${{env.SOLUTION_FILE_PATH}}"
# TODO Run tests
#- name: Test
# run: output/Win32/${{matrix.build_configuration}}/RunTests.exe
# now that we're building on TeamCity (to sign it), this isn't needed
#- name: rename installer
# if: ${{ success() && matrix.build_configuration == 'Release' }}
# run: cp "output/${{matrix.build_platform}}/SetupSILConverters_${{matrix.build_platform}}.exe" "output/${{matrix.build_platform}}/SetupSILConverters_${{matrix.build_platform}}.${{github.run_number}}.exe"
#- name: Upload a Build Artifact
# if: ${{ success() && matrix.build_configuration == 'Release' }}
# uses: actions/[email protected]
# with:
# name: silconverters-installers.${{matrix.build_platform}}.latest
# path: output/${{matrix.build_platform}}/SetupSILConverters_${{matrix.build_platform}}.${{github.run_number}}.exe