1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-31 04:18:25 +00:00

Update cmake.yml

Let's try to get testing happening.
We also disable artefact building for now.
This commit is contained in:
Bret Curtis 2021-10-12 18:29:40 +02:00 committed by GitHub
parent 6b482d0b52
commit 3922c6395b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,8 @@ on:
branches: [ master ]
env:
BUILD_TYPE: RelWithDebInfo
CONFIGURATION: RelWithDebInfo
GOOGLETEST_DIR: .
jobs:
build:
@ -23,28 +24,34 @@ jobs:
- name: Prime ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
key: ${{ matrix.os }}-${{ env.CONFIGURATION }}
max-size: 1000M
- name: Install gtest
run: sudo CI/build_googletest.sh
- 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"
run: cmake -S . -B . -DGTEST_ROOT="$(pwd)/googletest/build/install" -DGMOCK_ROOT="$(pwd)/googletest/build/install" -DBUILD_UNITTESTS=ON -DCMAKE_BUILD_TYPE=${{env.CONFIGURATION}} -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
run: cmake --build . --config ${{env.CONFIGURATION}} --parallel 3
- name: Install
shell: bash
run: cmake --install .
- name: Test
run: ./openmw_test_suite
# - name: Install
# shell: bash
# run: cmake --install .
- name: Create Artifact
shell: bash
working-directory: install
run: |
ls -laR
7z a ../build_artifact.7z .
# - 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
# - name: Upload Artifact
# uses: actions/upload-artifact@v1
# with:
# path: ./build_artifact.7z
# name: build_artifact.7z