Skip to content

Use ifstream and ofstream instead of fstream #169

Use ifstream and ofstream instead of fstream

Use ifstream and ofstream instead of fstream #169

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: MSBuild
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
BUILD_PLATFORM: [x86, x64]
include:
- BUILD_PLATFORM: x86
triplet: x86-windows-static
- BUILD_PLATFORM: x64
triplet: x64-windows-static
env:
SOLUTION_FILE_PATH: .
BUILD_CONFIGURATION: Release
VCPKG_DEFAULT_TRIPLET: ${{ matrix.triplet }}
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
runVcpkgInstall: true
vcpkgJsonGlob: '**/vcpkg.json'
- name: Integrate vcpkg
run: vcpkg integrate install
- 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 }} /p:Platform=${{ matrix.BUILD_PLATFORM }} ${{ env.SOLUTION_FILE_PATH }}
- name: Test
uses: josepho0918/vstest-action@main
with:
testAssembly: '*Tests.dll'
searchFolder: ${{ env.SOLUTION_FILE_PATH }}/${{ matrix.BUILD_PLATFORM }}/${{ env.BUILD_CONFIGURATION }}/
runInParallel: true
resultLogsArtifactName: vs-test-result-logs-${{ matrix.BUILD_PLATFORM }}