forked from libretro/RetroArch
-
Notifications
You must be signed in to change notification settings - Fork 0
125 lines (116 loc) · 4.06 KB
/
UWP.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: UWP
'on':
push:
branches:
- master
pull_request:
branches:
- master
jobs:
XboxOne:
runs-on: windows-latest
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Checkout Repository
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
submodules: false
- name: Download and Extract DLLs
run: >
Invoke-WebRequest -Uri
"https://archive.org/download/retroarch-xbox-files/RetroArch%20Xbox%20Files.zip"
-OutFile "DLLs.zip"
Expand-Archive -Path "DLLs.zip" -DestinationPath
"pkg/msvc-uwp/RetroArch-msvcUWP/cores/x64" -Force
Remove-Item "pkg/msvc-uwp/RetroArch-msvcUWP/cores/x64/.empty" -Force
shell: pwsh
- name: Download and Extract Cores
run: >
Invoke-WebRequest -Uri
"https://archive.org/download/retroarch-xbox-files/RetroArch%20Xbox%20Angle%20Cores.zip"
-OutFile "Angle_Cores.zip"
Expand-Archive -Path "Angle_Cores.zip" -DestinationPath
"pkg/msvc-uwp/RetroArch-msvcUWP/cores/x64/cores" -Force
Remove-Item "pkg/msvc-uwp/RetroArch-msvcUWP/cores/x64/cores/.empty"
-Force
shell: pwsh
- name: Compile ANGLE build
run: |
msbuild pkg\msvc-UWP\RetroArch-msvcUWP.sln `
/p:AppxBundle=Always `
/p:UapAppxPackageBuildMode==SideloadOnly `
/p:AppxBundlePlatforms="x64" `
/p:Configuration="ReleaseANGLE" `
/p:Platform="x64" `
/restore
shell: pwsh
- name: Grab AppX package
shell: cmd
run: >
cd pkg\msvc-uwp\x64\ReleaseANGLE\RetroArch-msvcUWP && copy /B *ReleaseANGLE.appx ..\..\RetroArch-XboxOne.appx
- name: Upload AppX package
uses: actions/upload-artifact@v4
with:
name: "RetroArch-XboxOne"
path: ./pkg/msvc-uwp/x64/RetroArch-XboxOne.appx
SeriesConsoles:
runs-on: windows-latest
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Checkout Repository
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
submodules: false
- name: Download and Extract DLLs
run: >
Invoke-WebRequest -Uri
"https://archive.org/download/retroarch-xbox-files/RetroArch%20Xbox%20Files.zip"
-OutFile "DLLs.zip"
Expand-Archive -Path "DLLs.zip" -DestinationPath
"pkg/msvc-uwp/RetroArch-msvcUWP/cores/x64" -Force
Remove-Item "pkg/msvc-uwp/RetroArch-msvcUWP/cores/x64/.empty" -Force
shell: pwsh
- name: Compile Mesa build
run: |
msbuild pkg\msvc-UWP\RetroArch-msvcUWP.sln `
/p:AppxBundle=Always `
/p:UapAppxPackageBuildMode==SideloadOnly `
/p:AppxBundlePlatforms="x64" `
/p:Configuration="Release" `
/p:Platform="x64" `
/restore
shell: pwsh
- name: Grab AppX package
shell: cmd
run: >
cd pkg\msvc-uwp\x64\Release\RetroArch-msvcUWP && copy /B *x64.appx ..\..\RetroArch-SeriesConsoles.appx
- name: Upload AppX package
uses: actions/upload-artifact@v4.3.5
with:
name: "RetroArch-SeriesConsoles"
path: ./pkg/msvc-uwp/x64/RetroArch-SeriesConsoles.appx
Publish-release:
needs: [XboxOne, SeriesConsoles]
name: Publish Release
if: github.ref == 'refs/heads/master'
permissions: write-all
runs-on: ubuntu-22.04
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4.1.7
with:
path: ./artifacts/
- name: Create a new release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: false
title: Latest UWP Builds
files: |
./artifacts/RetroArch-XboxOne/RetroArch-XboxOne.appx
./artifacts/RetroArch-SeriesConsoles/RetroArch-SeriesConsoles.appx