Compile with both gcc and clang
This commit is contained in:
parent
c9d20322b8
commit
d1eb95c7b6
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -10,6 +10,14 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: ubuntu:22.04
|
image: ubuntu:22.04
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- CC: gcc
|
||||||
|
CXX: g++
|
||||||
|
- CC: clang
|
||||||
|
CXX: clang++
|
||||||
|
|
||||||
# don't run pull requests from local branches twice
|
# don't run pull requests from local branches twice
|
||||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
|
||||||
|
|
||||||
@ -20,7 +28,7 @@ jobs:
|
|||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
apt-get -q -y update
|
apt-get -q -y update
|
||||||
apt-get -q -y install build-essential cmake git
|
apt-get -q -y install build-essential cmake git clang
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@ -30,7 +38,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
CC=${{ matrix.CC }} CXX=${{ matrix.CXX }} cmake ..
|
||||||
cmake --build .
|
cmake --build .
|
||||||
DESTDIR=../out cmake --install .
|
DESTDIR=../out cmake --install .
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user