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:
parent
6b482d0b52
commit
3922c6395b
1 changed files with 25 additions and 18 deletions
43
.github/workflows/cmake.yml
vendored
43
.github/workflows/cmake.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue