mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: CMake
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
BUILD_TYPE: RelWithDebInfo
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Add OpenMW PPA Dependancies
|
|
run: sudo add-apt-repository ppa:openmw/openmw; sudo apt-get update
|
|
|
|
- name: Install Building Dependancies
|
|
run: sudo CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic
|
|
|
|
- name: Prime ccache
|
|
uses: hendrikmuhs/ccache-action@v1
|
|
with:
|
|
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
|
|
max-size: 1000M
|
|
|
|
- name: Configure
|
|
run: cmake -S . -B . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_FLAGS='-Werror' -DCMAKE_CXX_FLAGS="-Werror -Wno-error=deprecated-declarations -Wno-error=nonnull -Wno-error=deprecated-copy"
|
|
|
|
- name: Build
|
|
run: cmake --build . --config ${{env.BUILD_TYPE}} --parallel 3
|
|
|
|
- name: Install
|
|
shell: bash
|
|
run: cmake --install .
|
|
|
|
- name: Create Artifact
|
|
shell: bash
|
|
working-directory: install
|
|
run: |
|
|
ls -laR
|
|
7z a ../build_artifact.7z .
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
path: ./build_artifact.7z
|
|
name: build_artifact.7z
|