CMAKE_BUILD_TYPE=Release #262
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: Build RPCSX | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build-rpcsx: | |
runs-on: ubuntu-latest | |
env: | |
CC: gcc-14 | |
CXX: g++-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
repository: RPCSX/rpcsx # qurious-pixel/rpcsx # | |
ref: master # devel # | |
submodules: recursive | |
- name: Checkout AppImage Repo | |
uses: actions/checkout@v3 | |
with: | |
clean: false | |
path: ci | |
- name: Setup dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y cmake build-essential libunwind-dev libstdc++-12-dev \ | |
libglfw3-dev libvulkan-dev vulkan-validationlayers-dev libsox-dev yad \ | |
spirv-tools glslang-tools libspirv-cross-c-shared-dev libfuse2 ninja-build | |
echo "deb http://azure.archive.ubuntu.com/ubuntu noble main universe" | sudo tee /etc/apt/sources.list | |
sudo apt update | |
sudo apt install g++-14 | |
- name: Setup Vulkan Headers | |
run: | | |
VULKANVER=1.3.269 | |
curl -sSfLo Vulkan-Headers.tar.gz https://github.com/KhronosGroup/Vulkan-Headers/archive/v${VULKANVER}.tar.gz | |
tar -xf Vulkan-Headers*.tar.gz | |
cd Vulkan-Headers*/ | |
mkdir build && cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr | |
make -j$(nproc) | |
sudo make install | |
- name: Setup SPIRV Cross | |
run: | | |
git clone https://github.com/KhronosGroup/SPIRV-Cross | |
cd SPIRV-Cross | |
mkdir build && cd build | |
cmake .. | |
cmake --build . | |
sudo make install | |
- name: Build RPCSX | |
run: | | |
cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 && \ | |
cmake --build build -j4 | |
ls -al build | |
- name: Package RPCSX AppImage | |
run: | | |
chmod +x ci/.github/assets/appimage.sh | |
ci/.github/assets/appimage.sh | |
mkdir -p artifacts | |
cp rpcsx.AppImage artifacts/ | |
- name: Upload RPCSX | |
uses: actions/upload-artifact@v3 | |
with: | |
name: rpcsx | |
path: artifacts | |
if-no-files-found: error |