Skip to content

Commit 020b2b4

Browse files
committed
CI: Build on LLVM 16
1 parent 3343346 commit 020b2b4

3 files changed

Lines changed: 44 additions & 2 deletions

File tree

‎.github/workflows/cmake.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CMake
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
12+
- name: Setup environment
13+
run: |
14+
echo "PS5SDK=$(pwd)" >> $GITHUB_ENV
15+
sudo apt install ninja-build
16+
echo "llvm_ver=16.0" >> $GITHUB_ENV
17+
18+
- name: Cache LLVM and Clang (${{ env.llvm_ver }})
19+
id: cache-llvm
20+
uses: actions/cache@v3
21+
with:
22+
path: ${{ runner.tool_cache }}/llvm-${{ env.llvm_ver }}
23+
key: llvm1-${{ env.llvm_ver }}
24+
25+
- name: Install LLVM and Clang (${{ env.llvm_ver }})
26+
uses: KyleMayes/install-llvm-action@master
27+
with:
28+
version: ${{ env.llvm_ver }}
29+
directory: ${{ runner.tool_cache }}/llvm-${{ env.llvm_ver }}
30+
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
31+
32+
- name: Show Clang version
33+
run: clang -v
34+
35+
- name: Build SDK
36+
run: bash ./build.sh
37+
38+
- name: Upload sample elf
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: samples
42+
path: ${{ github.workspace }}/**/*.elf

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# PS5 SDK
22

33
[![Release State](https://img.shields.io/badge/release%20state-beta-yellow.svg)](https://github.com/PS5Dev/PS5SDK) [![Platforms](https://img.shields.io/badge/platform-linux%20%7C%20windows%20%7C%20macos-lightgrey)](https://github.com/PS5Dev/PS5SDK)
4+
[![CMake](../../actions/workflows/cmake.yml/badge.svg)](../../actions/workflows/cmake.yml)
45

56
**Note: As this SDK is a work-in-progress, it's subject to major changes between releases until it approaches a stable version (1.0).**
67

‎examples/klog_server/source/main.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ extern void *fptr__read;
9393
int payload_main(struct payload_args *args)
9494
{
9595
int mainPID;
96-
uint64_t temp_addr;
9796

9897
// Fork must be resolved manually, dlsym refuses to resolve it
9998
void (*fptr_fork)() = (void (*)())(fptr__read + OFFSET_FORK_FROM_READ);
@@ -108,4 +107,4 @@ int payload_main(struct payload_args *args)
108107
}
109108

110109
return 0;
111-
}
110+
}

0 commit comments

Comments
 (0)