-
Notifications
You must be signed in to change notification settings - Fork 269
43 lines (33 loc) · 1.24 KB
/
retrobar.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
name: RetroBar
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
publishprofile: [ [x64, net6.0-windows], [x86, net6.0-windows], [ARM64, net6.0-windows] ]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install nbgv
uses: dotnet/[email protected]
- name: Publish app
run: dotnet publish -p:PublishProfile=$env:Profile -f $env:Framework
env:
Profile: ${{ matrix.publishprofile[0] }}
Framework: ${{ matrix.publishprofile[1] }}
- name: Copy license
run: cp DistLicense.txt RetroBar\bin\Release\${{ matrix.publishprofile[1] }}\publish-${{ matrix.publishprofile[0] }}\License.txt
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: RetroBar ${{ matrix.publishprofile[0] == 'x86' && '32-bit' || matrix.publishprofile[0] == 'x64' && '64-bit' || 'ARM64' }}
path: |
RetroBar\bin\Release\${{ matrix.publishprofile[1] }}\publish-${{ matrix.publishprofile[0] }}\RetroBar.exe
RetroBar\bin\Release\${{ matrix.publishprofile[1] }}\publish-${{ matrix.publishprofile[0] }}\License.txt