add CI workflows #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, pull_request] | |
jobs: | |
concurrent-ll: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: webfactory/[email protected] | |
continue-on-error: true | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: install-dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -q -y install build-essential cppcheck | |
- name: build | |
run: | | |
make | |
- name: make check | |
run: | | |
make check || (cat scripts/weeping.raw ; exit 1) | |
cat scripts/kirby.raw | |
- name: make test | |
run: | | |
make test || (cat scripts/weeping.raw ; exit 1) | |
cat scripts/kirby.raw | |
coding-style: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: coding convention | |
run: | | |
sudo apt-get install -q -y clang-format-14 | |
.ci/check-newline.sh | |
.ci/check-format.sh | |
shell: bash |