mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 21:35:24 +00:00
pipeline only on pull_requests (#3109)
* Create debs * Update cmake.yml * give ccache a try * ccache round 2 * Update cmake.yml
This commit is contained in:
parent
2be3a76b6a
commit
c658acc2b3
29
.github/workflows/cmake.yml
vendored
29
.github/workflows/cmake.yml
vendored
@ -1,8 +1,6 @@
|
|||||||
name: CMake
|
name: CMake
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
@ -22,31 +20,30 @@ jobs:
|
|||||||
- name: Install Building Dependancies
|
- name: Install Building Dependancies
|
||||||
run: sudo CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic
|
run: sudo CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Prime ccache
|
||||||
run: |
|
uses: hendrikmuhs/ccache-action@v1
|
||||||
mkdir build
|
with:
|
||||||
mkdir instdir
|
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
|
||||||
cmake -S . -B . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX:PATH=instdir
|
max-size: 1000M
|
||||||
|
|
||||||
- name: Build
|
- 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
|
||||||
|
|
||||||
|
- name: Buil
|
||||||
run: cmake --build . --config ${{env.BUILD_TYPE}} --parallel 3
|
run: cmake --build . --config ${{env.BUILD_TYPE}} --parallel 3
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{github.workspace}}/build
|
|
||||||
run: ctest -C ${{env.BUILD_TYPE}}
|
|
||||||
|
|
||||||
- name: Install OpenMW
|
- name: Install
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake --install .
|
run: cmake --install .
|
||||||
|
|
||||||
- name: Upload OpenMW Artifact
|
- name: Create Artifact
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: instdir
|
working-directory: install
|
||||||
run: |
|
run: |
|
||||||
ls -laR
|
ls -laR
|
||||||
7z a ../build_artifact.7z .
|
7z a ../build_artifact.7z .
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
path: ./build_artifact.7z
|
path: ./build_artifact.7z
|
||||||
|
Loading…
x
Reference in New Issue
Block a user