-
Notifications
You must be signed in to change notification settings - Fork 8
122 lines (103 loc) · 4.3 KB
/
main.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
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch:
push:
branches: [ master, github-workflow-test ]
tags:
- 'v*.*.*'
# Everything has to be in the same job, otherwise technically speaking you have to rely
# on uploading/downloading artifacts which is very slow when running a self-hosted runner
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/[email protected]
- name: Run Setup Script
run: C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64 -shell bash setup.sh
- name: Package for Unreal Engine 4.24
run: python package.py "$env:UE_4_24" "$env:RUNNER_TEMP"
- name: Package for Unreal Engine 4.25
run: python package.py "$env:UE_4_25" "$env:RUNNER_TEMP"
- name: Package for Unreal Engine 4.26
run: python package.py "$env:UE_4_26" "$env:RUNNER_TEMP"
- name: Package for Unreal Engine 4.27
run: python package.py "$env:UE_4_27" "$env:RUNNER_TEMP"
- name: Package for Unreal Engine 5.0
run: python package.py "$env:UE_5_0" "$env:RUNNER_TEMP"
- name: Package for Unreal Engine 5.1
run: python package.py "$env:UE_5_1" "$env:RUNNER_TEMP"
- name: Package for Unreal Engine 5.2
run: python package.py "$env:UE_5_2" "$env:RUNNER_TEMP"
- name: Package for Unreal Engine 5.3
run: python package.py "$env:UE_5_3" "$env:RUNNER_TEMP"
- name: Upload Build-Artifact 4.24
if: startsWith(github.ref, 'refs/heads/') # Upload artifacts when commits (not tags) are pushed
uses: actions/[email protected]
with:
name: UnrealLibretro-4.24
path: ${{ runner.temp }}/UnrealLibretro-4.24
if-no-files-found: error
- name: Upload Build-Artifact 4.25
if: startsWith(github.ref, 'refs/heads/')
uses: actions/[email protected]
with:
name: UnrealLibretro-4.25
path: ${{ runner.temp }}/UnrealLibretro-4.25
if-no-files-found: error
- name: Upload Build-Artifact 4.26
if: startsWith(github.ref, 'refs/heads/')
uses: actions/[email protected]
with:
name: UnrealLibretro-4.26
path: ${{ runner.temp }}/UnrealLibretro-4.26
if-no-files-found: error
- name: Upload Build-Artifact 4.27
if: startsWith(github.ref, 'refs/heads/')
uses: actions/[email protected]
with:
name: UnrealLibretro-4.27
path: ${{ runner.temp }}/UnrealLibretro-4.27
if-no-files-found: error
- name: Upload Build-Artifact 5.0
if: startsWith(github.ref, 'refs/heads/')
uses: actions/[email protected]
with:
name: UnrealLibretro-5.0
path: ${{ runner.temp }}/UnrealLibretro-5.0
if-no-files-found: error
- name: Upload Build-Artifact 5.1
if: startsWith(github.ref, 'refs/heads/')
uses: actions/[email protected]
with:
name: UnrealLibretro-5.1
path: ${{ runner.temp }}/UnrealLibretro-5.1
if-no-files-found: error
- name: Upload Build-Artifact 5.2
if: startsWith(github.ref, 'refs/heads/')
uses: actions/[email protected]
with:
name: UnrealLibretro-5.2
path: ${{ runner.temp }}/UnrealLibretro-5.2
if-no-files-found: error
- name: Upload Build-Artifact 5.3
if: startsWith(github.ref, 'refs/heads/')
uses: actions/[email protected]
with:
name: UnrealLibretro-5.3
path: ${{ runner.temp }}/UnrealLibretro-5.3
if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') # Only release when a tag is pushed
with:
files: |
${{ runner.temp }}/UnrealLibretro-4.24.zip
${{ runner.temp }}/UnrealLibretro-4.25.zip
${{ runner.temp }}/UnrealLibretro-4.26.zip
${{ runner.temp }}/UnrealLibretro-4.27.zip
${{ runner.temp }}/UnrealLibretro-5.0.zip
${{ runner.temp }}/UnrealLibretro-5.1.zip
${{ runner.temp }}/UnrealLibretro-5.2.zip
${{ runner.temp }}/UnrealLibretro-5.3.zip