-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.13 KB
/
build.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
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
SCESDK: /sce
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download SDK
run: wget -q -O sdk.tar.xz $SDK_URL
env:
SDK_URL: ${{secrets.SDK_URL}}
- name: Untar SDK
run: sudo mkdir /sce; sudo tar -xf sdk.tar.xz -C /sce; sudo ln -s /sce /usr/local/sce
- name: Configure CMake
run: cmake -DCMAKE_TOOLCHAIN_FILE=cmake/ps2_ee.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DKL2_RETAIL=ON -Bbuild
- name: Build
run: cmake --build build
- name: Download original ELF
if: always()
run: wget -q -O orig.elf $ELF_URL
env:
ELF_URL: ${{secrets.ELF_URL}}
- name: Download functions.json
if: always()
run: wget -q -O functions.json $JSON_URL
env:
JSON_URL: ${{secrets.JSON_URL}}
- name: Install diff dependencies
if: always()
run: pip install pyelftools rabbitizer colorama
- name: Run diff
if: always()
run: python tools/build_diff.py orig.elf build --json functions.json