-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.36 KB
/
linux.yml
File metadata and controls
53 lines (47 loc) · 1.36 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
name: linux
on:
push:
branches: [master]
paths-ignore:
- "**/README.*"
- "**/CONTRIBUTING.*"
pull_request:
branches: [master]
paths-ignore:
- "**/README.*"
- "**/CONTRIBUTING.*"
env:
BUILD_TYPE: Release
INSTALL_LOCATION: ".local"
jobs:
build:
runs-on: ubuntu-20.04
name: ${{ github.workflow }}-${{ matrix.cxx }}
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
strategy:
fail-fast: false
matrix:
include:
- cxx: g++-11
install: sudo apt install g++-11
- install: |
sudo apt install clang-12
# sudo apt install libc++-12-dev libc++abi-12-dev
# libc++ provides <concepts> from 13.0 only
# cxxflags: -stdlib=libc++
cxx: clang++-12
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Find the number of threads (Linux)
run: echo "::set-output name=THREADS::`nproc`"
id: number-of-threads
shell: bash
- uses: ./.github/build
with:
cmakePreset: ci-linux
cxx: ${{ matrix.cxx }}
install: ${{ matrix.install }}
cxxflags: ${{ matrix.cxxflags }}
threads: ${{ steps.number-of-threads.outputs.THREADS }}