-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.26 KB
/
build.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CMake build
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix: { dir: [
'assignment1',
'assignment2',
'assignment3',
'assignment4',
'assignment5',
'assignment6',
'assignment7',
'assignment8',
'assignment9',
] }
steps:
- name: ⬇ Checkout repo
uses: actions/checkout@v3
- name: 📦 Install dependencies
run: |
sudo apt-get install libclang-dev liblldb-dev || sudo apt-get install libclang-6.0-dev liblldb-6.0-dev || sudo apt-get install libclang-4.0-dev liblldb-4.0-dev || sudo apt-get install libclang-3.8-dev liblldb-3.8-dev
sudo apt-get install universal-ctags || sudo apt-get install exuberant-ctags
sudo apt-get install git cmake make g++ clang-format pkg-config libboost-filesystem-dev libboost-serialization-dev libgtksourceviewmm-3.0-dev aspell-en libaspell-dev libgit2-dev
- name: 🏗 CMake, configure and generate makefiles
working-directory: ${{ matrix.dir }}
run: cmake -S . -B build
- name: 👷 CMake, build
working-directory: ${{ matrix.dir }}
run: cmake --build build