mirror of
https://github.com/apache/thrift.git
synced 2026-03-26 04:32:07 +00:00
Ubuntu-20.04 will be EoL in 9 months, therefore let's use the next LTS version as default. Images for ubuntu-24.04 are available, so use them also for building the compiler.
41 lines
796 B
YAML
41 lines
796 B
YAML
name: 'Build with CMake'
|
|
|
|
on:
|
|
push:
|
|
branches: [ '*' ]
|
|
pull_request:
|
|
branches: [ '*' ]
|
|
|
|
env:
|
|
BUILD_DEPS: bison flex g++ libboost-all-dev libevent-dev libssl-dev make cmake
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
compiler:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update -yq
|
|
sudo apt-get install -y --no-install-recommends $BUILD_DEPS
|
|
|
|
- name: Generate makefile using CMake
|
|
run: |
|
|
mkdir cmake_build
|
|
cd cmake_build
|
|
cmake .. -DBUILD_LIBRARIES=OFF
|
|
|
|
- name: Run make
|
|
run: |
|
|
cd cmake_build
|
|
cmake --build .
|
|
|
|
- name: Run test
|
|
run: |
|
|
cd cmake_build
|
|
ctest -j$(nproc)
|