-
Notifications
You must be signed in to change notification settings - Fork 55
55 lines (45 loc) · 1.31 KB
/
stable-compilation.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
name: Stable Compilation
on:
push:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
docker:
name: ${{ matrix.image }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
image:
- ubuntu:20.04 # CMake 3.16.3 - g++ 9.3.0 - LTS
- debian:11 # CMake 3.18.4 - g++ 10.2.1 - oldstable
- ubuntu:22.04 # CMake 3.22.1 - g++ 11.2.0 - LTS
- debian:12 # CMake 3.25.1 - g++ 12.2.0 - stable
steps:
- name: Install dependencies
run: |
export DEBIAN_FRONTEND="noninteractive"
apt-get update
apt-get install -y --no-install-recommends --no-install-suggests \
ca-certificates build-essential cmake ninja-build git \
libicu-dev libexpat1-dev libinih-dev
- name: Clone Repository
uses: actions/checkout@v4
- name: Compile
run: |
cmake -G Ninja -B build . \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
- name: Install
run: |
cmake --install build
- name: Test
run: cmake --build build --target check