build(deps): bump coverallsapp/github-action from 2.3.7 to 2.3.8 #634
This file contains hidden or 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
| --- | |
| # vi: ts=2 sw=2 et: | |
| name: Build test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ toJSON(matrix.env) }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| env: | |
| - { | |
| TYPE: "default", | |
| CFLAGS: "-Werror" | |
| } | |
| - { | |
| TYPE: "asan+ubsan", | |
| CFLAGS: "-Werror -fsanitize=address,undefined", | |
| ASAN_OPTIONS: "exitcode=42:strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:abort_on_error=1", | |
| UBSAN_OPTIONS: "exitcode=42:print_stacktrace=1:print_summary=1:halt_on_error=1" | |
| } | |
| - { | |
| TYPE: "clang", | |
| CC: "clang", | |
| CFLAGS: "-Werror" | |
| } | |
| - { | |
| TYPE: "clang+asan+ubsan", | |
| CC: "clang", | |
| CFLAGS: "-Werror -fsanitize=address,undefined", | |
| ASAN_OPTIONS: "exitcode=42:strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:abort_on_error=1", | |
| UBSAN_OPTIONS: "exitcode=42:print_stacktrace=1:print_summary=1:halt_on_error=1" | |
| } | |
| - { | |
| TYPE: "valgrind", | |
| } | |
| env: ${{ matrix.env }} | |
| name: ${{ matrix.env.TYPE }} | |
| steps: | |
| - name: Repository checkout | |
| uses: actions/checkout@v7 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt -y update | |
| sudo apt -y install docbook-xsl gcc libglib2.0-dev xsltproc meson clang valgrind libdbus-1-dev | |
| - name: Build | |
| run: | | |
| set -ex | |
| meson setup --fatal-meson-warnings --werror -Ddfuzzer-test-server=true build | |
| ninja -C ./build -v | |
| sudo ninja -C ./build install | |
| sudo systemctl daemon-reload | |
| - name: Test - sanity | |
| run: .github/workflows/run-tests-sanity.sh | |
| - name: Test - systemd | |
| run: .github/workflows/run-tests-systemd.sh | |
| coveralls: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Repository checkout | |
| uses: actions/checkout@v7 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt -y update | |
| sudo apt -y install docbook-xsl gcc libglib2.0-dev xsltproc meson lcov libdbus-1-dev | |
| - name: Build | |
| run: | | |
| set -ex | |
| meson setup --fatal-meson-warnings --werror -Ddfuzzer-test-server=true -Db_coverage=true build | |
| ninja -C ./build -v | |
| sudo ninja -C ./build install | |
| sudo systemctl daemon-reload | |
| - name: Test | |
| run: | | |
| set -ex | |
| .github/workflows/run-tests-sanity.sh | |
| .github/workflows/run-tests-systemd.sh | |
| lcov --directory . --capture --initial --output-file coverage.info.initial | |
| lcov --directory . --capture --output-file coverage.info.run --no-checksum --rc lcov_branch_coverage=1 | |
| lcov -a coverage.info.initial -a coverage.info.run --rc lcov_branch_coverage=1 -o coverage.info.raw | |
| lcov --extract coverage.info.raw "$(pwd)/*" --rc lcov_branch_coverage=1 --output-file coverage.info | |
| - name: Coveralls | |
| uses: coverallsapp/github-action@v2.3.8 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| file: ./coverage.info | |
| format: lcov | |
| freebsd: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: cpa.sh {0} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-freebsd | |
| cancel-in-progress: true | |
| steps: | |
| - name: Repository checkout | |
| uses: actions/checkout@v7 | |
| - name: Start VM | |
| uses: cross-platform-actions/action@v1.3.0 | |
| with: | |
| operating_system: 'freebsd' | |
| version: '15.1' | |
| architecture: 'x86_64' | |
| - name: Run commands | |
| run: | | |
| set -ex | |
| # Use the latest packages | |
| sudo mkdir -p /usr/local/etc/pkg/repos/ | |
| sudo cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf | |
| sudo sed -i '' -e 's|/quarterly|/latest|' /usr/local/etc/pkg/repos/FreeBSD.conf | |
| sudo pkg install -y bash dbus docbook-xsl git glib libxslt meson pkgconf polkit | |
| # FreeBSD Ports pass --prefix=$PREFIX (where PREFIX=/usr/local) to meson, so replicate the same | |
| # here in our test | |
| # | |
| # See: https://cgit.freebsd.org/ports/tree/Mk/Uses/meson.mk | |
| meson setup --prefix=/usr/local --fatal-meson-warnings --werror -Ddfuzzer-test-server=true build | |
| ninja -C build -v | |
| sudo ninja -C build install | |
| sudo service dbus onestart | |
| # Check if dfuzzer fails without mounted /proc/ | |
| (! dfuzzer -l) | |
| sudo mount -t procfs proc /proc | |
| .github/workflows/run-tests-sanity.sh | |
| dfuzzer -v -n org.freedesktop.PolicyKit1 | |
| netbsd: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: cpa.sh {0} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-netbsd | |
| cancel-in-progress: true | |
| steps: | |
| - name: Repository checkout | |
| uses: actions/checkout@v7 | |
| - name: Start VM | |
| uses: cross-platform-actions/action@v1.3.0 | |
| with: | |
| operating_system: 'netbsd' | |
| version: '10.1' | |
| architecture: 'x86_64' | |
| - name: Run commands | |
| run: | | |
| set -ex | |
| export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r)/All/" | |
| # Automatically copy rc.d scripts from /usr/pkg/share/examples/rc.d/ to /etc/rc.d/ | |
| export PKG_RCD_SCRIPTS=yes | |
| sudo -E pkg_add -u bash dbus docbook-xsl git glib libxslt meson pkgconf polkit | |
| meson setup --prefix=/usr/pkg --mandir=/usr/pkg/man --fatal-meson-warnings --werror -Ddfuzzer-test-server=true build | |
| ninja -C build -v | |
| sudo ninja -C build install | |
| sudo service dbus onestart | |
| .github/workflows/run-tests-sanity.sh | |
| dfuzzer -v -n org.freedesktop.PolicyKit1 | |
| openbsd: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: cpa.sh {0} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-openbsd | |
| cancel-in-progress: true | |
| steps: | |
| - name: Repository checkout | |
| uses: actions/checkout@v7 | |
| - name: Start VM | |
| uses: cross-platform-actions/action@v1.3.0 | |
| with: | |
| operating_system: 'openbsd' | |
| version: '7.9' | |
| architecture: 'x86_64' | |
| - name: Run commands | |
| run: | | |
| set -ex | |
| export PKG_PATH="installpath:https://cdn.openbsd.org/%m" | |
| sudo -E pkg_add -U bash dbus docbook-xsl git glib2 libxslt meson polkit | |
| meson setup --prefix=/usr/local --mandir=/usr/local/man --fatal-meson-warnings --werror -Ddfuzzer-test-server=true build | |
| ninja -C build -v | |
| sudo ninja -C build install | |
| sudo rcctl -d start messagebus | |
| .github/workflows/run-tests-sanity.sh | |
| dfuzzer -v -n org.freedesktop.PolicyKit1 |