forked from log4cplus/log4cplus
-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (45 loc) · 1.24 KB
/
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
47
48
49
name: C/C++ CI
on:
push:
branches: [ "2.1.x" ]
pull_request:
branches: [ "2.1.x" ]
jobs:
build:
strategy:
matrix:
config:
- os: 'ubuntu-latest'
cc: 'gcc-13'
cxx: 'g++-13'
prereq: |
sudo apt install libstdc++-13-dev g++-13 gcc-13
- os: 'macos-13'
cc: 'clang'
cxx: 'clang++'
prereq: |
sudo xcode-select -s '/Applications/Xcode_15.1.app/Contents/Developer'
- os: 'macos-12'
cc: 'clang'
cxx: 'clang++'
prereq: |
sudo xcode-select -s '/Applications/Xcode_14.0.1.app/Contents/Developer'
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: install prerequisites
run: |
${{ matrix.config.prereq }}
- name: configure
run: |
${{ matrix.config.cxx }} --version
./scripts/fix-timestamps.sh
mkdir objdir
cd objdir
../configure CC='${{ matrix.config.cc }}' CXX='${{ matrix.config.cxx }}' --enable-shared --enable-unit-tests --with-working-locale
- name: make
run: cd objdir ; make
- name: make check
run: cd objdir ; make check