mirror of
https://github.com/ZDoom/wadext.git
synced 2024-11-25 21:31:25 +00:00
- added continuous integration via github actions
This commit is contained in:
parent
7a324ef90e
commit
9ba43b12bc
1 changed files with 50 additions and 0 deletions
50
.github/workflows/continuous_integration.yml
vendored
Normal file
50
.github/workflows/continuous_integration.yml
vendored
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
name: Continuous Integration
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: ${{ matrix.config.name }} | ${{ matrix.build_type }}
|
||||||
|
runs-on: ${{ matrix.config.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
config:
|
||||||
|
- {
|
||||||
|
name: "Visual Studio 64-bit",
|
||||||
|
os: windows-2019,
|
||||||
|
extra_options: "-A x64"
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
name: "Visual Studio 32-bit",
|
||||||
|
os: windows-2019,
|
||||||
|
extra_options: "-A Win32"
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
name: "macOS",
|
||||||
|
os: macos-10.15
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
name: "Linux GCC",
|
||||||
|
os: ubuntu-20.04
|
||||||
|
}
|
||||||
|
- {
|
||||||
|
name: "Linux Clang",
|
||||||
|
os: ubuntu-20.04,
|
||||||
|
extra_options: "-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++"
|
||||||
|
}
|
||||||
|
build_type: ["Release", "Debug"]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Configure
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.config.extra_options }} .
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
export MAKEFLAGS=--keep-going
|
||||||
|
cmake --build build --config ${{ matrix.build_type }} --parallel 3
|
Loading…
Reference in a new issue