Skip to content

Commit

Permalink
Merge branch 'master' into switch
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
dimag0g committed Jun 27, 2021
2 parents 8308d43 + ea7e93c commit 2447923
Show file tree
Hide file tree
Showing 293 changed files with 5,074 additions and 4,322 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
name: scan-build analyzer
name: Clang Analyzer

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
scan-build:
clang:
name: Clang Analyzer
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 50
- name: install SDL 2 and clang-tools
- name: Install dependencies and clang-tools
run: |
sudo apt-get update
sudo apt-get install -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev gettext clang-tools
- name: compile
- name: Analyze
run: scan-build --status-bugs -v make -j 2
env:
FHEROES2_STRICT_COMPILATION: "ON"
WITH_TOOLS: "ON"
FHEROES2_STRICT_COMPILATION: ON
WITH_TOOLS: ON
49 changes: 49 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CMake

on:
pull_request:
branches: [ master ]

jobs:
build:
strategy:
fail-fast: false
matrix:
config:
- name: Linux SDL1
os: ubuntu-latest
sdl_version: SDL
dependencies: libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
- name: Linux SDL2
os: ubuntu-latest
sdl_version: SDL2
dependencies: libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
- name: macOS SDL1
os: macos-latest
sdl_version: SDL
dependencies: sdl sdl_image sdl_mixer sdl_ttf
- name: macOS SDL2
os: macos-latest
sdl_version: SDL2
dependencies: sdl2 sdl2_image sdl2_mixer sdl2_ttf
name: CMake (${{ matrix.config.name }})
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies (Linux)
if: ${{ matrix.config.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.config.dependencies }}
- name: Install dependencies (macOS)
if: ${{ matrix.config.os == 'macos-latest' }}
run: |
brew install ${{ matrix.config.dependencies }}
- name: Build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -DUSE_SDL_VERSION=${{ matrix.config.sdl_version }} -DENABLE_IMAGE=ON -DENABLE_UNICODE=ON -DENABLE_TOOLS=ON -DFHEROES2_STRICT_COMPILATION=ON
cmake --build build -j2
- name: Install
run: |
sudo cmake --install build
38 changes: 0 additions & 38 deletions .github/workflows/cmake_build.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Code style check

on: [pull_request]
on:
pull_request:
branches: [ master ]

jobs:
clang-format:
check:
name: Code style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 50
- name: run clang-format-diff
- name: Run clang-format-diff
run: bash ./script/tools/check_code_format.sh
96 changes: 0 additions & 96 deletions .github/workflows/linux_pull_request.yml

This file was deleted.

126 changes: 0 additions & 126 deletions .github/workflows/linux_release.yml

This file was deleted.

Loading

0 comments on commit 2447923

Please sign in to comment.