forked from morell5/HSE-Course
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 1.18 KB
/
ci.yml
File metadata and controls
30 lines (27 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: ci
on: [pull_request]
jobs:
ci:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: tests
env:
CLANG_FORMAT_SUBMODULE: /home/runner/work/HSE-Course/HSE-Course/clangformat-cmake
TITLE: ${{github.event.pull_request.title}}
working-directory: ./module-1/homework/
run:
sudo apt-get install clang-tidy-10 &&
sudo apt-get install clang-format-10 &&
sudo rm -rf /usr/bin/clang-tidy &&
sudo rm -rf /usr/bin/clang-format &&
sudo ln -s /usr/bin/clang-tidy-10 /usr/bin/clang-tidy &&
sudo ln -s /usr/bin/clang-format-10 /usr/bin/clang-format &&
clang-tidy --version &&
clang-format --version &&
git submodule update --init --recursive &&
prname=${TITLE} &&
cmake -B ${prname}/build -S ${prname} &&
cmake --build ${prname}/build --target runner clangformat &&
./${prname}/build/runner