mirror of
https://github.com/LowganDev/PlayfinPS4.git
synced 2026-10-21 00:01:38 +02:00
61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
# Continuous integration: the Linux tests (debug and ASan), a short fuzz run and the PS4 package.
|
|
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
linux:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
preset: [linux-debug, linux-asan]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Packages
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y clang cmake pkg-config libsdl2-dev libgles-dev libegl-dev mesa-utils \
|
|
libcurl4-openssl-dev libssl-dev libmpv-dev xvfb
|
|
- name: Build
|
|
run: |
|
|
cmake --preset ${{ matrix.preset }}
|
|
cmake --build --preset ${{ matrix.preset }} -j"$(nproc)"
|
|
- name: Tests
|
|
run: ctest --preset ${{ matrix.preset }} --timeout 600
|
|
- name: Screenshots on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ui-out-${{ matrix.preset }}
|
|
path: build/${{ matrix.preset }}/ui-out
|
|
|
|
fuzz:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Packages
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y clang cmake pkg-config libsdl2-dev libgles-dev libegl-dev \
|
|
libcurl4-openssl-dev libssl-dev libmpv-dev
|
|
- name: Fuzz (30 s per target)
|
|
run: |
|
|
cmake --preset linux-fuzz
|
|
cmake --build --preset linux-fuzz -j"$(nproc)"
|
|
ctest --preset linux-fuzz --timeout 300
|
|
|
|
ps4:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Package
|
|
run: scripts/build-ps4.sh
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: playfin-ps4
|
|
path: dist/IV0001-PLFN00000_00-PLFN000000100000.pkg
|