Release tang version 15 (#144) #220
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
--- | |
name: coverage | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
os: | |
- ubuntu:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Show OS information | |
run: cat /etc/os-release 2>/dev/null || echo /etc/os-release not available | |
- name: Install build dependencies | |
run: bash .github/workflows/install-dependencies | |
- name: Build tang | |
run: | | |
mkdir -p build && cd build | |
export ninja=$(command -v ninja) | |
[ -z "${ninja}" ] && export ninja=$(command -v ninja-build) | |
meson .. -Db_coverage=true || cat meson-logs/meson-log.txt >&2 | |
${ninja} | |
- name: Run tests | |
run: | | |
cd build | |
meson test || cat meson-logs/testlog.txt >&2 | |
- name: Show full test logs | |
run: | | |
if [ -r build/meson-logs/testlog.txt ]; then | |
cat build/meson-logs/testlog.txt >&2 | |
else | |
echo "No test log available" >&2 | |
fi | |
- name: Create coverage report | |
run: | | |
cd build | |
export ninja=$(command -v ninja) | |
[ -z "${ninja}" ] && export ninja=$(command -v ninja-build) | |
gcovr -r .. -f ../src -f src/ -e ../tests -e tests -x coverage.xml | |
- uses: codecov/codecov-action@v3 | |
with: | |
file: build/coverage.xml | |
fail_ci_if_error: true # optional (default = false) | |
verbose: true # optional (default = false) | |
container: | |
image: ${{matrix.os}} | |
env: | |
DISTRO: ${{matrix.os}} | |
# vim:set ts=2 sw=2 et: |