mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-05 10:59:48 +00:00
adding our own github action for coding style
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
name: Build
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
name: "Build on ${{ matrix.name }}"
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
name: Linux
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install Xorg lib
|
||||
if: matrix.name == 'Linux'
|
||||
run: |
|
||||
sudo apt install -y libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev
|
||||
- name: Update G++
|
||||
if: matrix.name == 'Linux'
|
||||
run: sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir build && cd build
|
||||
cmake ..
|
||||
cmake --build .
|
||||
- name: CheckBinaryName
|
||||
shell: bash
|
||||
if: matrix.name == 'Linux'
|
||||
run: test -f build/bomberman
|
||||
@@ -1,31 +1,13 @@
|
||||
name: Update the documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- workflow
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Building:
|
||||
runs-on: [ubuntu-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install Doxygen
|
||||
run: sudo apt-get install -y doxygen graphviz
|
||||
- name: Update the docs
|
||||
- name: Install cpplint
|
||||
run: pip install cpplint
|
||||
- name: Check coding style
|
||||
run: |
|
||||
rm -rf docs/*
|
||||
doxygen Doxyfile
|
||||
cd docs
|
||||
git config --global user.email "${GITHUB_ACTOR}@github.com";
|
||||
git config --global user.name "${GITHUB_ACTOR}";
|
||||
git init
|
||||
git add -A;
|
||||
git commit -m "Deploying the documentation";
|
||||
git remote add origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${GITHUB_REPO};
|
||||
git checkout -b Documentation
|
||||
git push --force origin Documentation;
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_REPO: "github.com/AnonymusRaccoon/Bomberman"
|
||||
cpplint --recursive --quiet --verbose=3
|
||||
Reference in New Issue
Block a user