mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-21 19:50:54 +00:00
Merge pull request #45 from alexey-lysiuk/ci
Add continuous integration
This commit is contained in:
commit
9bd66835bf
2 changed files with 51 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 }}
|
||||
runs-on: ${{ matrix.config.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
config:
|
||||
- {
|
||||
name: "Linux Clang",
|
||||
os: ubuntu-20.04,
|
||||
extra_options: "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"
|
||||
}
|
||||
- {
|
||||
name: "Linux GCC",
|
||||
os: ubuntu-20.04
|
||||
}
|
||||
- {
|
||||
name: "macOS",
|
||||
os: macos-12
|
||||
}
|
||||
- {
|
||||
name: "Windows",
|
||||
os: windows-2022
|
||||
}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Configure
|
||||
shell: bash
|
||||
run: |
|
||||
cmake -B build ${{ matrix.config.extra_options }} .
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
export MAKEFLAGS=--keep-going
|
||||
cmake --build build --config Release --parallel 3
|
||||
|
||||
- name: List Build Directory
|
||||
if: always()
|
||||
shell: bash
|
||||
run: |
|
||||
git status
|
||||
ls -lR build
|
|
@ -35,6 +35,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#ifndef __APPLE__
|
||||
|
|
Loading…
Reference in a new issue