Skip to content

Commit e075427

Browse files
committed
ci: initial commit
1 parent c822509 commit e075427

1 file changed

Lines changed: 67 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- "**/*.md"
7+
- '**/*.txt'
8+
pull_request:
9+
paths-ignore:
10+
- "**/*.md"
11+
- '**/*.txt'
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
19+
- name: Checkout SDK
20+
uses: actions/checkout@v3
21+
with:
22+
repository: ps5-payload-dev/sdk
23+
path: sdk
24+
25+
- name: Setup SDK
26+
working-directory: sdk
27+
run: |
28+
sudo apt update
29+
sudo apt install clang-18 lld-18
30+
make DESTDIR=${{ runner.tool_cache }}/ps5-payload-sdk clean install
31+
echo PS5_PAYLOAD_SDK=${{ runner.tool_cache }}/ps5-payload-sdk >> $GITHUB_ENV
32+
33+
- name: Checkout Payload
34+
uses: actions/checkout@v3
35+
36+
- name: Build Payload
37+
run: |
38+
make -f Makefile clean all
39+
40+
- name: Upload Payload
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: Payload
44+
path: plutotv-install.elf
45+
if-no-files-found: error
46+
47+
48+
release:
49+
needs: build
50+
permissions:
51+
contents: write
52+
53+
if: startsWith(github.ref, 'refs/tags/')
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Download artifacts
57+
uses: actions/download-artifact@v4
58+
with:
59+
name: Payload
60+
path: .
61+
62+
- name: Create GitHub Release (pre-release)
63+
uses: softprops/action-gh-release@v2
64+
with:
65+
tag_name: ${{ github.ref_name }}
66+
prerelease: true
67+
files: plutotv-install.elf

0 commit comments

Comments
 (0)