diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 94f6bbb1..d51400d5 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -29,7 +29,7 @@ runs: - run: sudo apt-get install -y build-essential valgrind clang-tools lcov gperf astyle codespell shell: bash - run: | - sudo apt-get install -y python3 python3-distutils python3-setuptools python3-pip + sudo apt-get install -y python3 python3-setuptools python3-pip python3 -m pip install --upgrade pip python3 -m pip install cython # Add cython to the path diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2f28a2ad..1feabc1f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -11,7 +11,7 @@ on: ["push", "pull_request"] jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: actions: read contents: read diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 2a3e2739..15c3487c 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -25,7 +25,7 @@ on: ["push", "pull_request"] jobs: tests: name: Tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout from github @@ -43,7 +43,7 @@ jobs: livetests: name: Live Tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout from github @@ -62,7 +62,7 @@ jobs: scanbuild: name: Scan Build - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout from github @@ -76,7 +76,7 @@ jobs: codecoverage: name: Code Coverage - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout from github @@ -107,7 +107,7 @@ jobs: codespell: name: Codespell - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Checkout from github diff --git a/Makefile.am b/Makefile.am index 588e0238..5e8aa835 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,6 @@ CODE_COVERAGE_OUTPUT_FILE = libseccomp.lcov.info CODE_COVERAGE_OUTPUT_DIRECTORY = libseccomp.lcov.html.d CODE_COVERAGE_IGNORE_PATTERN = \ */usr/include/* \ - */src/arch-syscall-check.c \ */src/syscalls.perf ACLOCAL_AMFLAGS = -I m4 diff --git a/m4/ax_code_coverage.m4 b/m4/ax_code_coverage.m4 index a257469f..338e46c1 100644 --- a/m4/ax_code_coverage.m4 +++ b/m4/ax_code_coverage.m4 @@ -142,7 +142,7 @@ AC_DEFUN([AX_CODE_COVERAGE],[ '] [CODE_COVERAGE_RULES_CAPTURE=' $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS) - $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS) + $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS) -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS) @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"