Merge branch 'master' of https://github.com/pionere/devilutionX into ps4 #6043
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CMake | |
# When creating a new workflow in GitHub’s action builder the default trigger is the push event. We want to extend this to push and pull request events. | |
on: [push, pull_request] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
# The CMake configure and build commands are platform agnostic and should work equally | |
# well on Windows or Mac. You can convert this to a matrix build if you need | |
# cross-platform coverage. | |
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create Build Environment | |
run: > | |
sudo apt-get update && | |
sudo apt-get install -y wget cmake git gettext && | |
wget https://github.com/PacBrew/pacbrew-pacman/releases/download/v1.1/pacbrew-pacman-1.1.deb && | |
sudo dpkg -i pacbrew-pacman-1.1.deb && sudo pacbrew-pacman -Sy && | |
sudo pacbrew-pacman --noconfirm -S ps4-openorbis ps4-openorbis-portlibs && | |
echo "#include <endian.h>" | sudo tee /opt/pacbrew/ps4/openorbis/include/sys/endian.h | |
- name: Build | |
working-directory: ${{github.workspace}} | |
shell: bash | |
run: Packaging/ps4/build.sh -DHELLFIRE=ON | |
- name: Show content of workspace | |
run: find $RUNNER_WORKSPACE | |
shell: bash | |
- name: Upload-Package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: devilutionx.pkg | |
path: build-ps4/devilutionx.pkg |