-
Notifications
You must be signed in to change notification settings - Fork 147
87 lines (73 loc) · 2.2 KB
/
mediaportal.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
name: Mediaportal
on:
push:
# On Push to Master branch
branches:
- master
# Ignore all Tags / Release
tags-ignore:
- '**'
workflow_call:
inputs:
retention-logs:
description: "Retention Period for Log files. Default is 1"
default: 3
required: false
type: number
retention-build:
description: "Retention Period for Setup files. Default is 90"
default: 90
required: false
type: number
jobs:
build:
strategy:
matrix:
architecture: [x86, x64]
name: Build Mediaportal
runs-on: windows-2019
steps:
- name: Setup Visual Studio 2019
uses: microsoft/[email protected]
with:
vs-version: 16.11
- name: Link to Visual Studio 2019 Community
run: |
mklink /J "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community" "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
shell: cmd
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: 8
architecture: x86
distribution: temurin
- name: Setup NSIS
run: |
choco install --yes nsis --version=3.09 --force
- name: Git Checkout
uses: actions/checkout@v4
- name: Git Submodule Update
run: |
git submodule update --init --recursive
- name: Build
run: |
BuildFullinstaller.cmd LOG ${{ matrix.architecture }}
working-directory: ${{ github.workspace }}\Build
shell: cmd
- name: Upload Artifact / Build result file
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Build result file ${{ matrix.architecture }}
path: |
${{ github.workspace }}\Build\BuildFullInstaller.log
retention-days: ${{ inputs.retention-logs || 3 }}
- name: Upload Artifact / Mediaportal setup file
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: Mediaportal setup file ${{ matrix.architecture }}
path: |
${{ github.workspace }}\Release\MediaPortalSetup_*.exe
retention-days: ${{ inputs.retention-build || 90 }}
if-no-files-found: error