-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (36 loc) · 1.26 KB
/
single_include.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
name: Single include
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set symlinks
run: |
sudo update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-10 1000 \
--slave /usr/bin/g++ g++ /usr/bin/g++-10 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-10 \
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-10 \
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-10
sudo update-alternatives \
--install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 1000
- name: init submodules
run: git submodule init
- name: update submodules
run: git submodule update
- name: make header
run: make -B single_include
- name: build
run: g++ -DFMT_HEADER_ONLY -std=c++20 -Wall -pedantic test/single_include.cpp -I single_include -isystem third_party/include -pthread -o /dev/null
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
author_name: github-actions
author_email: github-actions@github.com
message: 'Update single include header'
add: single_include/xtr/logger.hpp