Skip to content

ps4-release

ps4-release #1

Workflow file for this run

name: ps4-release
on:
push:
tags:
- "v*.*"
jobs:
build-ps4-release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install build dependencies
run: |
sudo apt -yq update
sudo apt -yq install git build-essential cmake zip libgpgme11
- name: Install ps4 toolchain
run: |
wget https://github.com/PacBrew/pacbrew-pacman/releases/download/pacbrew-release-1.0/pacbrew-pacman-1.0.deb
sudo dpkg -i pacbrew-pacman-1.0.deb
sudo pacbrew-pacman -Syu
sudo pacbrew-pacman --noconfirm -S ps4-openorbis ps4-openorbis-portlibs
- name: Build pfbneo
run: |
mkdir cmake-build-pfbneo && cd cmake-build-pfbneo
export OPENORBIS=/opt/pacbrew/ps4/openorbis
cmake -G "Unix Makefiles" -DPLATFORM_PS4=ON -DOPTION_EMU=pfbneo -DCMAKE_BUILD_TYPE=Release ..
make pfbneo.deps
make -j $(getconf _NPROCESSORS_ONLN) pfbneo_pkg
mv *.pkg $GITHUB_WORKSPACE
- name: Build pgen
run: |
mkdir cmake-build-pgen && cd cmake-build-pgen
export OPENORBIS=/opt/pacbrew/ps4/openorbis
cmake -G "Unix Makefiles" -DPLATFORM_PS4=ON -DOPTION_EMU=pgen -DCMAKE_BUILD_TYPE=Release ..
make -j $(getconf _NPROCESSORS_ONLN) pgen_pkg
mv *.pkg $GITHUB_WORKSPACE
- name: Build pnes
run: |
mkdir cmake-build-pnes && cd cmake-build-pnes
export OPENORBIS=/opt/pacbrew/ps4/openorbis
cmake -G "Unix Makefiles" -DPLATFORM_PS4=ON -DOPTION_EMU=pnes -DCMAKE_BUILD_TYPE=Release ..
make -j $(getconf _NPROCESSORS_ONLN) pnes_pkg
mv *.pkg $GITHUB_WORKSPACE
- name: Build psnes
run: |
mkdir cmake-build-psnes && cd cmake-build-psnes
export OPENORBIS=/opt/pacbrew/ps4/openorbis
cmake -G "Unix Makefiles" -DPLATFORM_PS4=ON -DOPTION_EMU=psnes -DCMAKE_BUILD_TYPE=Release ..
make -j $(getconf _NPROCESSORS_ONLN) psnes_pkg
mv *.pkg $GITHUB_WORKSPACE
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: '*.pkg'
token: ${{ secrets.GITHUB_TOKEN }}