2020-09-10 02:06:46 +00:00
|
|
|
name: Check style
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- master
|
|
|
|
- staging.tmp
|
|
|
|
- trying.tmp
|
|
|
|
- staging-squash-merge.tmp
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-style:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-09-10 22:00:33 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Prepare
|
2020-09-10 02:06:46 +00:00
|
|
|
run: |
|
|
|
|
sudo apt-get update -y
|
2020-09-10 22:00:33 +00:00
|
|
|
sudo apt-get install clang-format imagemagick ddnet-tools -y
|
2020-09-10 02:06:46 +00:00
|
|
|
- name: Check style
|
|
|
|
run: |
|
|
|
|
clang-format -version
|
2020-09-25 22:58:58 +00:00
|
|
|
scripts/fix_style.py --dry-run
|
2020-09-10 22:02:46 +00:00
|
|
|
scripts/check_header_guards.py
|
2020-11-11 21:48:23 +00:00
|
|
|
scripts/languages/update_all.py
|
2020-09-10 22:00:33 +00:00
|
|
|
- name: Prepare build dilate
|
|
|
|
run: |
|
|
|
|
sudo apt-get update -y
|
|
|
|
sudo apt-get install pkg-config cmake libfreetype6-dev libnotify-dev libsdl2-dev libsqlite3-dev -y
|
|
|
|
- name: Build dilate
|
|
|
|
run: |
|
|
|
|
mkdir release
|
|
|
|
cd release
|
|
|
|
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DDOWNLOAD_GTEST=OFF -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=. ..
|
|
|
|
cmake --build . --config Release --target dilate --parallel
|
|
|
|
- name: Check if images are dilated
|
|
|
|
run: |
|
|
|
|
scripts/check_dilate.sh release data
|