mirror of
https://github.com/clearlinux/telemetrics-client.git
synced 2026-06-15 18:25:57 +00:00
00556dde05
- Use latest version of checkout action. - Checkout the head of the PR commit. - Install json-c dependency. - Use libcheck from OS. Signed-off-by: Alex Jaramillo <alex.v.jaramillo@intel.com>
30 lines
664 B
YAML
30 lines
664 B
YAML
name: C/C++ CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get --fix-missing install libcurl4-gnutls-dev valgrind libelf-dev libdw-dev libjson-c-dev check
|
|
- name: autogen
|
|
run: sh autogen.sh
|
|
- name: configure
|
|
run: ./configure
|
|
- name: make
|
|
run: make -j8
|
|
- name: check
|
|
run: make check
|
|
- name: valgrind memcheck
|
|
run: make check-valgrind
|
|
- name: make distcheck
|
|
run: make distcheck
|