Add CI workflow #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Build | |
run: | | |
make -j$(nproc) -C tools | |
if ! git diff-index --quiet HEAD --; then | |
echo 'Uncommitted changes detected:' | |
git diff-index HEAD -- | |
return 1 | |
fi |