-
Notifications
You must be signed in to change notification settings - Fork 131
68 lines (56 loc) · 1.58 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
name: Main CI
on:
push:
branches:
- '*'
tags:
- '*'
workflow_dispatch:
jobs:
build_windows:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Hash
shell: cmd
working-directory: ./
run: echo '%GITHUB_SHA:~0,7%' > tag.inc
- name: Tag
shell: cmd
working-directory: ./
if: startsWith(github.ref, 'refs/tags/')
run: echo '%GITHUB_REF_NAME%' > tag.inc
- name: Compile
shell: cmd
working-directory: ./
run: |
lazbuild -B fpPS4.lpi > nul
strip fpPS4.exe
- name: Download
shell: cmd
working-directory: ./
run: |
curl -k -L -s https://github.com/red-prig/fpps4-bin/raw/main/ffmpeg.zip -o ffmpeg.zip
unzip ffmpeg.zip
- name: Upload artifacts
uses: actions/upload-artifact@v2
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
name: fpPS4
path: |
fpPS4.exe
*.dll
if-no-files-found: warn
- name: Pack
shell: cmd
working-directory: ./
if: startsWith(github.ref, 'refs/tags/')
run: |
mkdir sce_module
echo "Put libSceNgs2.prx and etc. here" > sce_module/info.txt
zip -9 -qq -r "fpPS4_%GITHUB_REF_NAME%.zip" "fpPS4.exe" "*.dll" "sce_module/info.txt"
- name: Release
uses: red-prig/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./fpPS4_${{ github.ref_name }}.zip