-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 997 Bytes
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# os: [centos7, rhel8]
os: [rhel8]
include:
# - os: centos7
# container: "centos:7"
- os: rhel8
container: "oraclelinux:8"
container: ${{ matrix.container }}
steps:
- name: checkout for centos7
if: ${{ matrix.os == 'centos7' }}
uses: actions/checkout@v3
- name: checkout for rhel8
if: ${{ matrix.os == 'rhel8' }}
uses: actions/checkout@v4
- name: install dependencies
run: |
yum install -y epel-release
yum install -y make gcc-c++ openssl-devel utf8proc-devel
- name: make osptk
run: |
cd $GITHUB_WORKSPACE/src
make build
- name: make test_app
run: |
cd $GITHUB_WORKSPACE/test
make linux