mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +00:00
a802bcb320
Automatically grabs and compiles libpng, and avoids having hacky lines in our Makefile (the compiler specification *should* be orthogonal to the build target!) Also move the MinGW package install to the `install_deps.sh` script, to move logic off of the YAML.
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
name: Code coverage report
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
env:
|
|
# Force colored output (see https://bixense.com/clicolors/ and https://force-color.org/)
|
|
TERM: xterm-256color
|
|
CLICOLOR: 1
|
|
CLICOLOR_FORCE: 1
|
|
|
|
jobs:
|
|
coverage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v6
|
|
- name: Install deps
|
|
run: |
|
|
.github/scripts/install_deps.sh ubuntu-latest lcov
|
|
- name: Install test dependency dependencies
|
|
run: |
|
|
test/fetch-test-deps.sh --get-deps ubuntu
|
|
- name: Generate coverage report
|
|
run: |
|
|
contrib/coverage.bash ubuntu-ci
|
|
- name: Upload coverage report
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: coverage-report
|
|
# Workaround for keeping the top-level coverage/ directory
|
|
# https://github.com/actions/upload-artifact/issues/174
|
|
path: |
|
|
coverage
|
|
dummy-file-to-keep-directory-structure.txt
|
|
if-no-files-found: error
|