-
-
Notifications
You must be signed in to change notification settings - Fork 93
68 lines (65 loc) · 2.01 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-os-boost:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies (ubuntu)
run: sudo apt-get install -y libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev libboost-thread-dev libboost-serialization-dev libboost-program-options-dev
if: matrix.os == 'ubuntu-latest'
- name: Install dependencies (macos)
run: |
brew update
brew install boost automake libtool
echo "CPATH=$CPATH:$(brew --prefix)/include" >> "$GITHUB_ENV" &&
echo "LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix)/lib" >> "$GITHUB_ENV"
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(brew --prefix)/lib" >> "$GITHUB_ENV"
if: matrix.os == 'macos-latest'
- name: Prepare
run: autoreconf --install
- name: Configure
run: ./configure
- name: Log config.log
run: cat config.log
if: always()
- name: make
run: make
- name: make check
run: make check
build-local-boost:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: boost_*.tar.gz
key: ${{ matrix.os }}
- name: Install dependencies (macos)
run: |
brew update
brew install automake libtool zlib bzip2
echo "CPATH=$CPATH:$(brew --prefix)/include" >> "$GITHUB_ENV" &&
echo "LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix)/lib" >> "$GITHUB_ENV"
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(brew --prefix)/lib" >> "$GITHUB_ENV"
if: matrix.os == 'macos-latest'
- name: Build
run: ./build.sh
- name: Log boost.log
run: cat boost.log
if: always()
- name: Log config.log
run: cat config.log
if: always()