2021-08-27 16:50:46 +02:00
|
|
|
name: build
|
|
|
|
|
|
|
|
# build on c/cpp changes or workflow changes
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- '**.[ch]'
|
|
|
|
- '**.cpp'
|
|
|
|
- '**/CMakeLists.txt'
|
2023-01-29 14:44:03 +01:00
|
|
|
- 'util/ci/**'
|
2021-08-27 16:50:46 +02:00
|
|
|
- '.github/workflows/**.yml'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '**.[ch]'
|
|
|
|
- '**.cpp'
|
|
|
|
- '**/CMakeLists.txt'
|
2023-01-29 14:44:03 +01:00
|
|
|
- 'util/ci/**'
|
2021-08-27 16:50:46 +02:00
|
|
|
- '.github/workflows/**.yml'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
gcc:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
2023-01-29 14:44:03 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-08-27 16:50:46 +02:00
|
|
|
- name: Install deps
|
|
|
|
run: |
|
|
|
|
source util/ci/script.sh
|
|
|
|
install_linux_deps
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
source util/ci/script.sh
|
|
|
|
run_build
|
|
|
|
env:
|
|
|
|
CC: gcc
|
|
|
|
CXX: g++
|
|
|
|
|
2021-08-27 20:49:29 +02:00
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
source util/ci/script.sh
|
|
|
|
do_functional_test
|
|
|
|
|
2021-08-27 16:50:46 +02:00
|
|
|
clang:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
2023-01-29 14:44:03 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-08-27 16:50:46 +02:00
|
|
|
- name: Install deps
|
|
|
|
run: |
|
|
|
|
source util/ci/script.sh
|
|
|
|
install_linux_deps
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
source util/ci/script.sh
|
|
|
|
run_build
|
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
CXX: clang++
|
2021-08-27 20:49:29 +02:00
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
source util/ci/script.sh
|
|
|
|
do_functional_test
|