-
Notifications
You must be signed in to change notification settings - Fork 33
71 lines (60 loc) · 1.7 KB
/
ci.yml
File metadata and controls
71 lines (60 loc) · 1.7 KB
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
69
70
71
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-linux:
name: Build on ${{ matrix.name }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- name: Rocky Linux 9
image: rockylinux:9
install_cmd: dnf install -y cmake gcc gcc-c++ make
- name: Debian 13 (trixie)
image: debian:trixie
install_cmd: apt-get update && apt-get install -y cmake gcc g++ make
- name: AlmaLinux latest
image: almalinux:latest
install_cmd: dnf install -y cmake gcc gcc-c++ make
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build in Docker
run: |
docker run --rm \
-v "${{ github.workspace }}:/workspace" \
-w /workspace \
${{ matrix.image }} \
sh -c "${{ matrix.install_cmd }} && cmake -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build --verbose"
build-windows:
name: Build on Windows (${{ matrix.arch }})
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
arch: [x64, Win32]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build
run: |
cmake -B build -A ${{ matrix.arch }}
cmake --build build --config Release --verbose
build-macos:
name: Build on macOS
runs-on: macos-15
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --verbose