Skip to content

Commit

Permalink
Merge branch 'trunk' of github.com:lrre-foss/rnr into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
floralrainfall committed Jul 18, 2023
2 parents a1cea61 + c99afb4 commit f44cdc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 67 deletions.
64 changes: 2 additions & 62 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,6 @@ name: Build
on: [ push ]

jobs:
linux:
strategy:
matrix:
configuration: [ Release, Debug ]

name: Linux
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
name: Clone repository
with:
submodules: recursive

- uses: awalsh128/cache-apt-pkgs-action@latest
name: Install required packages
with:
version: 1.0
packages: >-
git
clang
cmake
ninja-build
libboost-dev
Libogre-1.12-dev
libpugixml-dev
qt6-base-dev
- name: Generate Ninja build files
run: cmake -G Ninja -B build -DCI=ON -DCMAKE_BUILD_TYPE=${{ matrix.configuration == 'Release' && 'MinSizeRel' || matrix.configuration }} .

- name: Run Ninja build
run: ninja -C build

# ouch - unless and until we start using CMake's install command, these next few steps are a necessary evil
- name: Organize binaries
run: mkdir build/dist && find build -perm /a+x -exec mv {} build/dist \;

- name: Add RNR resources
run: cp -R Content/RNR build/dist/content && cp LICENSE build/dist

- name: Add OGRE plugins
run: cp -R build/plugins build/dist && cp Content/linux_plugins.cfg build/dist/plugins.cfg

- name: Add OGRE shaders
run: cp -R build/shaders build/dist

- name: Set output variables
id: vars
run: |
echo "configuration=${{ matrix.configuration }}" | awk '{print tolower($0)}' >> $GITHUB_OUTPUT
echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: rnr-${{ steps.vars.outputs.hash }}-linux_x64-${{ steps.vars.outputs.configuration }}
path: build/dist

windows:
strategy:
matrix:
Expand All @@ -86,7 +27,6 @@ jobs:
with:
msystem: ${{ matrix.sys }}
install: >-
git
mingw-w64-${{ matrix.env }}-${{ matrix.sys == 'clang64' && 'clang' || 'gcc' }}
mingw-w64-${{ matrix.env }}-cmake
mingw-w64-${{ matrix.env }}-ninja
Expand Down Expand Up @@ -124,10 +64,10 @@ jobs:
id: vars
run: |
echo "configuration=${{ matrix.configuration }}" | awk '{print tolower($0)}' >> $GITHUB_OUTPUT
echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "hash=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: rnr-${{ steps.vars.outputs.hash }}-win_x64-${{ steps.vars.outputs.configuration }}
path: build/dist
path: build/dist
6 changes: 1 addition & 5 deletions Projects/Client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
option(FORCE_ENABLE_VSYNC ON)

if(COMPILE_PLAYER OR COMPILE_STUDIO)
if(LINUX)
include(/usr/share/cmake/Modules/FindX11.cmake)
endif()

find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets OpenGLWidgets)
set(QT6_LIBRARIES_INCL Qt6::Core Qt6::Gui Qt6::Widgets Qt6::OpenGLWidgets Qt6::GuiPrivate ${X11_X11_LIB})
set(QT6_LIBRARIES_INCL Qt6::Core Qt6::Gui Qt6::Widgets Qt6::OpenGLWidgets Qt6::GuiPrivate)

add_subdirectory(Common)

Expand Down

0 comments on commit f44cdc9

Please sign in to comment.