Skip to content

Commit

Permalink
Introduce GitHub Actions config.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiPashkin committed Jan 3, 2021
1 parent 25bfddc commit 9832d20
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# For documentation please refer to:
# https://docs.github.com/en/free-pro-team@latest/actions
name: CI

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

jobs:
black-check:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Cache Tox
uses: actions/cache@v2
with:
path: $HOME/.cache/pip
key: ${{ runner.os }}-tox
- run: pip install tox>=3
- run: tox -e black-check
clang-tidy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Cache Snap
uses: actions/cache@v2
with:
path: /var/lib/snapd/
key: ${{ runner.os }}-snap
- name: Install CMake 3.19
run: sudo snap install cmake --channel=3.19/stable --classic
- run: |
sudo apt-get update
sudo apt-get install -y clang-tools
- run: cmake .
- run: make clang-tidy
clang-format-check:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Cache Snap
uses: actions/cache@v2
with:
path: /var/lib/snapd/
key: ${{ runner.os }}-snap
- name: Install CMake 3.19
run: sudo snap install cmake --channel=3.19/stable --classic
- run: |
sudo apt-get update
sudo apt-get install -y clang-tools
- run: cmake .
- run: make clang-format-check

0 comments on commit 9832d20

Please sign in to comment.