-
Notifications
You must be signed in to change notification settings - Fork 17
37 lines (34 loc) · 1010 Bytes
/
ubuntu.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
name: Ubuntu-20.04
on: [push]
jobs:
build:
strategy:
matrix:
compiler: [g++]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: submodule
run: |
git submodule init
git submodule update
dpkg --list | grep compiler
- if: matrix.compiler == 'g++-4.8' && matrix.os != 'macOS-latest'
name: install gcc 4.8
run: |
# It has become quite tricky to install GCC 4.8 on Ubuntu 20.04.
# This way does no longer work :(
sudo apt-get install g++-4.8
dpkg --list | grep compiler
echo "CC=gcc-4.8" >> $GITHUB_ENV
echo "CXX=g++-4.8" >> $GITHUB_ENV
- name: Set env clang
if: matrix.compiler == 'clang'
run: |
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang" >> $GITHUB_ENV
- name: cmake
run: mkdir _build && cd _build && cmake ../ -DENABLE_CXX17=OFF
- name: build
run: cd _build && cmake --build ./