mirror of
https://github.com/ZDoom/ZMusic.git
synced 2025-03-19 17:12:00 +00:00
- added Continuous Integration via GitHub Actions
This commit is contained in:
parent
eb7d20d0d2
commit
ef8fd7f66e
1 changed files with 61 additions and 0 deletions
61
.github/workflows/continuous_integration.yml
vendored
Normal file
61
.github/workflows/continuous_integration.yml
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
name: Continuous Integration
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.config.name }}
|
||||
runs-on: ${{ matrix.config.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
config:
|
||||
- {
|
||||
name: "Visual Studio 64-bit",
|
||||
os: windows-latest,
|
||||
build_type: "Release",
|
||||
extra_options: "-A x64"
|
||||
}
|
||||
- {
|
||||
name: "Visual Studio 32-bit",
|
||||
os: windows-latest,
|
||||
build_type: "Release",
|
||||
extra_options: "-A Win32"
|
||||
}
|
||||
- {
|
||||
name: "macOS Clang",
|
||||
os: macos-latest,
|
||||
build_type: "Release"
|
||||
}
|
||||
- {
|
||||
name: "Linux GCC",
|
||||
os: ubuntu-latest,
|
||||
build_type: "Release"
|
||||
}
|
||||
- {
|
||||
name: "Linux Clang",
|
||||
os: ubuntu-latest,
|
||||
build_type: "Release",
|
||||
extra_options: "-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++"
|
||||
}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Configure
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} ${{ matrix.config.extra_options }} ..
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
cd build
|
||||
if [[ "${{ runner.os }}" == 'Windows' ]]; then
|
||||
cmake --build . --config ${{ matrix.config.build_type }} -- -maxcpucount -verbosity:minimal
|
||||
else
|
||||
cmake --build . -- --jobs=2 --keep-going
|
||||
fi
|
||||
|
Loading…
Reference in a new issue