Skip to content

be more explicit

be more explicit #26

Workflow file for this run

name: CMake
on:
push:
branches:
- 'master'
pull_request:
branches: [ master ]
env:
BUILD_TYPE: RelWithDebInfo
jobs:
Ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Add OpenMW PPA Dependencies
run: sudo add-apt-repository ppa:openmw/openmw; sudo apt-get update
- name: Install Building Dependencies
run: sudo CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic
- name: Prime ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
max-size: 1000M
- name: Configure
run: |
cmake . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DUSE_SYSTEM_TINYXML=TRUE \
-DOPENMW_USE_SYSTEM_RECASTNAVIGATION=TRUE \
-DOPENMW_USE_SYSTEM_VSG=FALSE \
-DOPENMW_USE_SYSTEM_VSGXCHANGE=FALSE \
-DCMAKE_INSTALL_PREFIX=install \
-DBUILD_OPENCS=FALSE \
-DBUILD_BSATOOL=FALSE \
-DBUILD_LAUNCHER=FALSE \
-DBUILD_WIZARD=FALSE \
-DBUILD_ESMTOOL=FALSE \
-DBUILD_NAVMESHTOOL=FALSE \
-DBUILD_BULLETOBJECTTOOL=FALSE
- name: Build
run: make -j3
MacOS:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-13
# - macos-13-xlarge # support for M1, now pay walled
arch:
# - arm64 # support for M1, now pay walled
- amd64
steps:
- uses: actions/checkout@v4
- name: Install Building Dependencies
run: CI/before_install.osx.sh
env:
MACOS_AMD64: ${{ matrix.arch == 'amd64' && 'true' || '' }}
- name: Prime ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
max-size: 1000M
- name: Configure
run: |
rm -fr build # remove the build directory
CI/before_script.osx.sh
- name: Build
run: |
cd build
make -j $(sysctl -n hw.logicalcpu) package
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: OpenMW.dmg
path: build/OpenMW-*.dmg
# Currently not building due to build error
# error: ‘void View::CollectLights::pack()’ marked ‘override’, but does not override
#
# Flatpak:
# name: "Flatpak"
# runs-on: ubuntu-latest
# container:
# image: bilelmoussaoui/flatpak-github-actions:kde-5.15-23.08
# options: --privileged
#
# steps:
# - uses: actions/checkout@v4
#
# - uses: flatpak/flatpak-github-actions/flatpak-builder@v6
# with:
# bundle: openmw.flatpak
# manifest-path: CI/org.openmw.OpenMW.devel.yaml
# cache-key: flatpak-builder-${{ github.sha }}