forked from root670/CheatDevicePS2
-
-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (57 loc) · 1.68 KB
/
Copy pathCI.yml
File metadata and controls
69 lines (57 loc) · 1.68 KB
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
name: Automated-Build
on:
workflow_dispatch:
push:
repository_dispatch:
types: [run_build]
jobs:
build:
strategy:
fail-fast: false
matrix:
opts: ["", "HDD=1", "EXFAT=1", "MMCE=1"]
runs-on: ubuntu-latest
container: ps2dev/ps2dev:v1.0
steps:
- name: Install dependencies
run: |
apk add build-base git zip
- uses: actions/checkout@v4
- run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch --prune --unshallow --tags
- name: Compile cheat device
run: |
make rebuild release ${{ matrix.opts }}
- name: list
run: |
ls -R
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: "${{ github.event.repository.name }}-${{ matrix.opts }}"
path: release/*.zip
#######################################################
release:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: ${{ github.event.repository.name }}/
pattern: "${{ github.event.repository.name }}-*"
merge-multiple: true
- name: list
run: |
ls -R
- name: Create release
if: github.ref == 'refs/heads/master'
uses: mathieucarbou/marvinpinto-action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Latest automated build"
files: |
${{ github.event.repository.name }}/CheatDevicePS2*.zip