First draft of a workflow for MSVC

This commit is contained in:
Jesse Talavera-Greenberg 2023-06-17 21:47:01 -04:00 committed by LibretroAdmin
parent be6d793399
commit 64bd977712
1 changed files with 61 additions and 0 deletions

61
.github/workflows/MSVC.yml vendored Normal file
View File

@ -0,0 +1,61 @@
name: CI Windows (MSVC)
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
permissions:
contents: read
# These jobs run smoke tests to ensure that MSVC-specific builds work properly.
jobs:
uwp:
runs-on: windows-2022
strategy:
matrix:
configuration: [Debug, DebugANGLE, Release, ReleaseANGLE]
platform: [x86, x64, ARM, ARM64]
steps:
- uses: actions/checkout@v3
- name: Compile RA
working-directory: "${{github.workspace}}/pkg/msvc-uwp"
run: |
msbuild -p:"Configuration=${{matrix.configuration}}" -p"Platform=${{matrix.platform}}" .\RetroArch-msvcUWP.sln
- name: Get short SHA
id: slug
shell: powershell
run: echo "::set-output name=sha8::$('${{env.GITHUB_SHA}}'.Substring(0,8))"
- uses: actions/upload-artifact@v3
with:
name: retroarch-UWP-${{matrix.configuration}}-${{matrix.platform.}}-${{ steps.slug.outputs.sha8 }}
path: pkg/msvc-uwp/AppPackages/RetroArch-msvcUWP
msvc-2019:
runs-on: windows-2022
strategy:
matrix:
configuration: [Debug, Release]
platform: [x86, x64, ARM, ARM64]
# Qt and Cg builds are excluded for now
steps:
- uses: actions/checkout@v3
- name: Compile RA
working-directory: "${{github.workspace}}/pkg/msvc"
run: |
msbuild -p:"Configuration=${{matrix.configuration}}" -p"Platform=${{matrix.platform}}" .\RetroArch-msvc2019.sln
- name: Get short SHA
id: slug
shell: powershell
run: echo "::set-output name=sha8::$('${{env.GITHUB_SHA}}'.Substring(0,8))"
- uses: actions/upload-artifact@v3
with:
name: retroarch-UWP-${{matrix.configuration}}-${{matrix.platform.}}-${{ steps.slug.outputs.sha8 }}
path: pkg/msvc-uwp/AppPackages/RetroArch-msvcUWP