Skip to content

reverted accidental vs toolchain upgrade #273

reverted accidental vs toolchain upgrade

reverted accidental vs toolchain upgrade #273

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
workflow_dispatch:
jobs:
build-win32:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild and add to PATH
id: setup_msbuild
uses: microsoft/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Run MSBuild
id: run_msbuild
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild ./project/gba-demo.vcxproj /p:configuration=release /p:platform=win32
- uses: actions/upload-artifact@v2
with:
name: gba-demo-win32
path: ./build/out/Release/gba-demo.exe
build-gba:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./.github/workflows/devkitarm-docker-action
- run: mv workspace.gba gba-demo.gba
- uses: actions/upload-artifact@v2
with:
name: gba-demo
path: ./gba-demo.gba
test-gba:
needs: build-gba
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild and add to PATH
id: setup_msbuild
uses: microsoft/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: nuget setup
id: setup_nuget
uses: nuget/setup-nuget@v1
- name: nuget restore
id: restore_nuget
run: nuget restore ./tests/gba-test.csproj
- name: dotnet setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
- name: write test configuration
id: write_test_configuration
working-directory: tests/
run: "echo \"rom_path: D:/a/gba-demo/gba-demo/tests/gba-demo.gba\" > configuration.yml"
- name: Run MSBuild
id: run_msbuild
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild ./tests/gba-test.csproj /p:configuration=debug /p:platform=x86
- name: download built gba rom
id: download_artifact
uses: actions/[email protected]
with:
name: gba-demo
path: ./tests
- name: Run Tests
id: run_tests
working-directory: tests/
run: dotnet test --logger "trx;logfilename=gba-tests_results.trx" --results-directory ./ ./bin/x86/debug/netcoreapp3.1/gba-test.dll
- uses: actions/upload-artifact@v2
with:
name: gba-tests_results
path: ./tests/gba-tests_results.trx