|
@@ -42,7 +42,7 @@ jobs:
|
|
|
install: base-devel mingw-w64-${{matrix.env}}-toolchain
|
|
install: base-devel mingw-w64-${{matrix.env}}-toolchain
|
|
|
- run: make
|
|
- run: make
|
|
|
- run: make test
|
|
- run: make test
|
|
|
- code-coverage:
|
|
|
|
|
|
|
+ code-coverage-old:
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/checkout@v4
|
|
@@ -50,6 +50,38 @@ jobs:
|
|
|
uses: hrishikesh-kadam/setup-lcov@v1
|
|
uses: hrishikesh-kadam/setup-lcov@v1
|
|
|
- name: Build and Run tests
|
|
- name: Build and Run tests
|
|
|
run: make coverage -j
|
|
run: make coverage -j
|
|
|
|
|
+ # - name: Upload coverage to Codecov
|
|
|
|
|
+ # uses: codecov/codecov-action@v5
|
|
|
|
|
+ # with:
|
|
|
|
|
+ # files: ./cov-html/libopenlibm.info
|
|
|
|
|
+ # token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
|
+ - uses: actions/upload-artifact@v4
|
|
|
|
|
+ with:
|
|
|
|
|
+ name: code-coverage-report-old
|
|
|
|
|
+ path: ./cov-html/
|
|
|
|
|
+ code-coverage:
|
|
|
|
|
+ runs-on: ubuntu-latest
|
|
|
|
|
+ steps:
|
|
|
|
|
+ - name: Checkout Openlibm
|
|
|
|
|
+ uses: actions/checkout@v4
|
|
|
|
|
+ - name: Checkout Openlibm-test
|
|
|
|
|
+ uses: actions/checkout@v4
|
|
|
|
|
+ with:
|
|
|
|
|
+ repository: 'JuliaMath/openlibm-test'
|
|
|
|
|
+ path: 'openlibm-test'
|
|
|
|
|
+ - name: Setup LCOV
|
|
|
|
|
+ uses: hrishikesh-kadam/setup-lcov@v1
|
|
|
|
|
+ - name: Build Openlibm
|
|
|
|
|
+ run: make -j`nproc` CODE_COVERAGE=1
|
|
|
|
|
+ - name: Run Test
|
|
|
|
|
+ run: |
|
|
|
|
|
+ make -j`nproc` -C openlibm-test \
|
|
|
|
|
+ USE_OPENLIBM=1 OPENLIBM_HOME="$(pwd)" \
|
|
|
|
|
+ SKIP_FP_EXCEPT_TEST=1 \
|
|
|
|
|
+ - name: Show Test Result
|
|
|
|
|
+ run: cat openlibm-test/src/REPORT
|
|
|
|
|
+ - name: Gen Coverage Report
|
|
|
|
|
+ run: make gen-cov-report
|
|
|
- name: Upload coverage to Codecov
|
|
- name: Upload coverage to Codecov
|
|
|
uses: codecov/codecov-action@v5
|
|
uses: codecov/codecov-action@v5
|
|
|
with:
|
|
with:
|