Files
ptprnt/.gitea/workflows/build.yaml
Moritz Martinius 6d19ee4922
Some checks failed
Build ptprnt / build (push) Has been cancelled
Typo in build.yaml
2025-10-19 12:36:04 +02:00

57 lines
2.0 KiB
YAML

name: Build ptprnt
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Starting action...
run: echo "Branch ${{ gitea.ref }} will be built for project ${{ gitea.repository }}."
- name: Checkout branch
uses: actions/checkout@v3
- name: Update package cache
run: apt-get update
- name: install meson
run: apt-get -yq install meson
- name: Install build dependencies
run: apt-get -yq install libusb-1.0-0-dev libpango1.0-dev libcairo2-dev gcovr
- name: get build environment versions
run: |
echo "=== Start meson version ==="
gcc --version
echo "=== End meson version ==="
echo "=== Start supported c/cpp standards: ==="
gcc -v --help 2> /dev/null | sed -n '/^ *-std=\([^<][^ ]\+\).*/ {s//\1/p}'
echo "=== End supported c/cpp standards ==="
echo "=== Start meson version ==="
meson --version
echo "=== End meson version ==="
echo "=== Start ninja version ==="
ninja --version
echo "=== End ninja version ==="
echo "=== Start dependency package version ==="
apt-cache policy libpango1.0-dev
apt-cache policy libcairo2-dev
apt-cache policy libusb-1.0-0-dev
echo "=== End dependency package version ==="
- name: Build ptprnt debug
run: scripts/build.sh -j 2 debug --coverage --test
- name: Generate coverage
run: scripts/generate_coverage.sh --text
- name: Coverage report
run: cat ./coverageReport/coverage.txt
- name: build release
run: scripts/build.sh -j 2 release
- name: upload release binary
uses: actions/upload-artifact@v3
with:
name: ptprnt
path: ./builddir/ptprnt
if-no-files-found: error
- name: upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage.txt
path: ./coverageReport/coverage.txt
if-no-files-found: error