-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (87 loc) · 1.91 KB
/
Copy pathcpp.yml
File metadata and controls
89 lines (87 loc) · 1.91 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2025-2026 Eli2
name: Build
on:
push:
branches:
- master
jobs:
build-ubuntu:
runs-on: ubuntu-latest
container:
image: ubuntu:latest
steps:
- name: prepare
run: |
apt-get update -y
apt-get install -y git nodejs
env:
DEBIAN_FRONTEND: noninteractive
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: install
run: |
bash scripts/install_from_readme.sh
- name: configure
run: |
cmake --version
bash scripts/configure_from_readme.sh ubuntu
- name: build
run: |
cmake --build build -j4
- name: test
run: |
ctest --test-dir build
build-arch:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- name: prepare
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm --needed git nodejs
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: install
run: |
bash scripts/install_from_readme.sh
- name: configure
run: |
cmake --version
bash scripts/configure_from_readme.sh arch
- name: build
run: |
cmake --build build -j4
- name: test
run: |
ctest --test-dir build
build-fedora:
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: prepare
run: |
dnf install -y git nodejs
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: install
run: |
bash scripts/install_from_readme.sh
- name: configure
run: |
cmake --version
bash scripts/configure_from_readme.sh fedora
- name: build
run: |
cmake --build build -j4
- name: test
run: |
ctest --test-dir build