ci: try to make git work in github actions #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-License-Identifier: BSD-3-Clause | |
# Copyright (c) 2023 Robin Jarry | |
--- | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: fedora:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
dnf install -y \ | |
make gcc ninja-build meson gcovr scdoc \ | |
libasan \ | |
libcmocka-devel \ | |
libedit-devel \ | |
libevent-devel \ | |
numactl-devel \ | |
python3-pyelftools | |
- run: make | |
- run: make coverage | |
lint: | |
runs-on: ubuntu-latest | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
steps: | |
- run: sudo apt-get install -y make clang-tools-extra git | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: make lint | |
- run: | | |
git config --global --add safe.directory $PWD | |
git log --oneline --decorate "${{ github.head_ref }}..${{ github.ref }}" | |
if: ${{ github.head_ref }} |