mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-28 12:40:06 +00:00
Format github workflow file
This commit is contained in:
parent
20e3eeddde
commit
4146f8b9b0
116
.github/workflows/openmw.yml
vendored
116
.github/workflows/openmw.yml
vendored
@ -12,80 +12,80 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Add OpenMW PPA Dependencies
|
- name: Add OpenMW PPA Dependencies
|
||||||
run: sudo add-apt-repository ppa:openmw/openmw; sudo apt-get update
|
run: sudo add-apt-repository ppa:openmw/openmw; sudo apt-get update
|
||||||
|
|
||||||
- name: Install Building Dependencies
|
- name: Install Building Dependencies
|
||||||
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: Prime ccache
|
- name: Prime ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1
|
uses: hendrikmuhs/ccache-action@v1
|
||||||
with:
|
with:
|
||||||
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
|
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
|
||||||
max-size: 1000M
|
max-size: 1000M
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: >
|
run: >
|
||||||
cmake .
|
cmake .
|
||||||
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
-D OPENMW_USE_SYSTEM_RECASTNAVIGATION=ON
|
-D OPENMW_USE_SYSTEM_RECASTNAVIGATION=ON
|
||||||
-D USE_SYSTEM_TINYXML=ON
|
-D USE_SYSTEM_TINYXML=ON
|
||||||
-D BUILD_COMPONENTS_TESTS=ON
|
-D BUILD_COMPONENTS_TESTS=ON
|
||||||
-D BUILD_OPENMW_TESTS=ON
|
-D BUILD_OPENMW_TESTS=ON
|
||||||
-D BUILD_OPENCS_TESTS=ON
|
-D BUILD_OPENCS_TESTS=ON
|
||||||
-D CMAKE_INSTALL_PREFIX=install
|
-D CMAKE_INSTALL_PREFIX=install
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build . -- -j$(nproc)
|
run: cmake --build . -- -j$(nproc)
|
||||||
|
|
||||||
- name: Run components tests
|
- name: Run components tests
|
||||||
run: ./components-tests
|
run: ./components-tests
|
||||||
|
|
||||||
- name: Run OpenMW tests
|
- name: Run OpenMW tests
|
||||||
run: ./openmw-tests
|
run: ./openmw-tests
|
||||||
|
|
||||||
- name: Run OpenMW-CS tests
|
- name: Run OpenMW-CS tests
|
||||||
run: ./openmw-cs-tests
|
run: ./openmw-cs-tests
|
||||||
|
|
||||||
# - name: Install
|
# - name: Install
|
||||||
# shell: bash
|
# shell: bash
|
||||||
# run: cmake --install .
|
# run: cmake --install .
|
||||||
|
|
||||||
# - name: Create Artifact
|
# - name: Create Artifact
|
||||||
# shell: bash
|
# shell: bash
|
||||||
# working-directory: install
|
# working-directory: install
|
||||||
# run: |
|
# run: |
|
||||||
# ls -laR
|
# ls -laR
|
||||||
# 7z a ../build_artifact.7z .
|
# 7z a ../build_artifact.7z .
|
||||||
|
|
||||||
# - name: Upload Artifact
|
# - name: Upload Artifact
|
||||||
# uses: actions/upload-artifact@v1
|
# uses: actions/upload-artifact@v1
|
||||||
# with:
|
# with:
|
||||||
# path: ./build_artifact.7z
|
# path: ./build_artifact.7z
|
||||||
# name: build_artifact.7z
|
# name: build_artifact.7z
|
||||||
|
|
||||||
MacOS:
|
MacOS:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Building Dependencies
|
- name: Install Building Dependencies
|
||||||
run: CI/before_install.osx.sh
|
run: CI/before_install.osx.sh
|
||||||
|
|
||||||
- name: Prime ccache
|
- name: Prime ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1
|
uses: hendrikmuhs/ccache-action@v1
|
||||||
with:
|
with:
|
||||||
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
|
key: ${{ matrix.os }}-${{ env.BUILD_TYPE }}
|
||||||
max-size: 1000M
|
max-size: 1000M
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
rm -fr build # remove the build directory
|
rm -fr build # remove the build directory
|
||||||
CI/before_script.osx.sh
|
CI/before_script.osx.sh
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
make -j $(sysctl -n hw.logicalcpu) package
|
make -j $(sysctl -n hw.logicalcpu) package
|
||||||
|
Loading…
x
Reference in New Issue
Block a user