-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (44 loc) · 1.48 KB
/
testing-alpine.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
name: build and test on AlpineLinux
on:
push:
branches: [ master, devel ]
pull_request:
branches: [ master, devel ]
jobs:
debug:
strategy:
fail-fast: false
matrix:
tag: ['3.20','3.19','3.18','3.17']
runs-on: ubuntu-latest
container: alpine:${{ matrix.tag }}
steps:
- run: apk add git libc++-dev g++ cmake make bash bats diffutils
- run: git config --global --add safe.directory /__w/pegof/pegof
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-tags: true
- run: cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON
- run: cmake --build build --target test
release:
strategy:
fail-fast: false
matrix:
tag: ['3.20','3.19','3.18','3.17']
opt: ['', '-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=TRUE']
runs-on: ubuntu-latest
container: alpine:${{ matrix.tag }}
steps:
- run: apk add git libc++-dev g++ cmake make bash
- run: git config --global --add safe.directory /__w/pegof/pegof
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-tags: true
- run: cmake -S . -B build -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release ${{ matrix.opt }}
- run: cmake --build build --target test
- run: readelf -h build/pegof
- run: readelf -d build/pegof
- run: build/pegof --help
- run: build/pegof --version