Let's get testy! (#3172)

Let's try to get testing happening.
We also disable artefact building for now.
pull/3178/head
Bret Curtis 3 years ago committed by GitHub
parent 9c040d1ff7
commit 5f8e487012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,25 +26,37 @@ jobs:
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }} key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
max-size: 1000M max-size: 1000M
- name: Install gtest
run: |
export CONFIGURATION="Release"
export GOOGLETEST_DIR="."
export GENERATOR="Unix Makefiles"
export CC="gcc"
export CXX="g++"
sudo -E CI/build_googletest.sh
- name: Configure - 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" -DGMOCK_ROOT="$(pwd)/googletest/build" -DBUILD_UNITTESTS=ON -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 - name: Build
run: cmake --build . --config ${{env.BUILD_TYPE}} --parallel 3 run: cmake --build . --config ${{env.BUILD_TYPE}} --parallel 3
- name: Install - name: Test
shell: bash run: ./openmw_test_suite
run: cmake --install .
# - name: Install
- name: Create Artifact # shell: bash
shell: bash # run: cmake --install .
working-directory: install
run: | # - name: Create Artifact
ls -laR # shell: bash
7z a ../build_artifact.7z . # working-directory: install
# run: |
- name: Upload Artifact # ls -laR
uses: actions/upload-artifact@v1 # 7z a ../build_artifact.7z .
with:
path: ./build_artifact.7z # - name: Upload Artifact
name: build_artifact.7z # uses: actions/upload-artifact@v1
# with:
# path: ./build_artifact.7z
# name: build_artifact.7z

Loading…
Cancel
Save