-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (54 loc) · 1.5 KB
/
run_tests.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: C/C++ CI
on: [push]
jobs:
almalinux:
runs-on: ubuntu-latest
name: Test compile on latest AlmaLinux
container:
image: almalinux
steps:
- name: Install dependencies
run: |
dnf install -y epel-release
dnf install -y make g++ catch-devel readline-devel yaml-cpp-devel spdlog-devel
- name: Checkout
uses: actions/checkout@v4
- name: make junit
run: |
make
make junit || true
centos:
runs-on: ubuntu-latest
name: Test compile on Centos7
container:
image: centos/devtoolset-7-toolchain-centos7
options: -u root
steps:
- name: Install dependencies
run: |
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y make catch-devel readline-devel yaml-cpp-devel git
- name: Checkout
uses: actions/checkout@v3
- name: make junit
run: |
git clone https://github.com/gabime/spdlog.git
mv spdlog/include/spdlog include/
git clone https://github.com/fmtlib/fmt
mv fmt/include/fmt include
make
make junit || true
ubuntu:
runs-on: ubuntu-latest
name: Test compile on Ubuntu
steps:
- name: Install dependencies
run: |
sudo apt update -y
sudo apt install -y make g++ catch libreadline-dev libyaml-cpp-dev libspdlog-dev
- name: Checkout
uses: actions/checkout@v4
- name: make junit
run: |
make
make junit || true