71 lines
2.1 KiB
YAML
Raw Normal View History

2023-06-17 21:47:01 -04:00
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:
include:
- configuration: Release
platform: x64
- configuration: ReleaseANGLE
platform: x64
2023-06-17 21:47:01 -04:00
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
2023-06-17 21:47:01 -04:00
- name: Compile RA
working-directory: "${{github.workspace}}/pkg/msvc-uwp"
run: |
2023-06-17 22:06:43 -04:00
msbuild -p:"Configuration=${{matrix.configuration}}" -p:"Platform=${{matrix.platform}}" .\RetroArch-msvcUWP.sln
2023-06-17 21:47:01 -04:00
- name: Get short SHA
id: slug
shell: powershell
run: echo "::set-output name=sha8::$('${{github.sha}}'.Substring(0,8))"
2023-06-17 21:47:01 -04:00
- uses: actions/upload-artifact@v3
with:
2023-06-17 21:59:33 -04:00
name: retroarch-UWP-${{matrix.configuration}}-${{matrix.platform}}-${{ steps.slug.outputs.sha8 }}
2023-06-17 21:47:01 -04:00
path: pkg/msvc-uwp/AppPackages/RetroArch-msvcUWP
msvc-2019:
runs-on: windows-2022
strategy:
matrix:
2023-06-17 22:39:39 -04:00
include:
- configuration: Release
platform: x64
2023-06-17 21:47:01 -04:00
# Qt and Cg builds are excluded for now
steps:
- uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
2023-06-17 21:47:01 -04:00
- name: Compile RA
working-directory: "${{github.workspace}}/pkg/msvc"
run: |
2023-06-17 22:06:43 -04:00
msbuild -p:"Configuration=${{matrix.configuration}}" -p:"Platform=${{matrix.platform}}" .\RetroArch-msvc2019.sln
2023-06-17 21:47:01 -04:00
- name: Get short SHA
id: slug
shell: powershell
run: echo "::set-output name=sha8::$('${{github.sha}}'.Substring(0,8))"
2023-06-17 21:47:01 -04:00
- uses: actions/upload-artifact@v3
with:
name: retroarch-msvc2019-${{matrix.configuration}}-${{matrix.platform}}-${{ steps.slug.outputs.sha8 }}
2023-06-17 22:49:24 -04:00
path: pkg/msvc/${{matrix.platform}}/${{matrix.configuration}}/RetroArch-msvc2019.exe