Skip to content

ffi: impl Sync, Send for MCache, DCache, FSeq #1510

ffi: impl Sync, Send for MCache, DCache, FSeq

ffi: impl Sync, Send for MCache, DCache, FSeq #1510

Workflow file for this run

name: Make Coverage
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
make-test-coverage:
runs-on: [self-hosted, Linux, X64]
defaults:
run:
shell: sudo --preserve-env=PATH bash --noprofile --norc -eo pipefail -c "export CC=clang; export EXTRAS=llvm-cov; set -ex; chmod +x {0} && {0}"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: dtolnay/[email protected]
- uses: ./.github/actions/deps
- name: Build everything
run: make -j
- name: Run unit tests
run: make -k -j4 --output-sync=target run-unit-test
- name: Make coverage report
run: |
make cov-report
mv build/native/clang/cov/html coverage-report
- name: Upload coverage HTML report as GitHub artifact
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage-report
- name: Upload coverage report to CodeCov
uses: codecov/codecov-action@v3
timeout-minutes: 5
with:
files: build/native/clang/cov/cov.lcov
name: codecov-make-linux_clang-14_native
fail_ci_if_error: false
functionalities: search
publish-coverage:
runs-on: ubuntu-22.04
needs: [make-test-coverage]
if: github.ref == 'refs/heads/main'
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download coverage report
uses: actions/download-artifact@v3
with:
name: coverage-report
path: _site/coverage-report
- name: Re-package coverage report
uses: actions/upload-pages-artifact@v2
with:
path: _site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2