Skip to content

Use double-precision floats where sensible #442

Use double-precision floats where sensible

Use double-precision floats where sensible #442

Workflow file for this run

name: build
on:
push:
paths-ignore:
- '*.md'
pull_request:
paths-ignore:
- '*.md'
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: [ubuntu-20.04]
compiler: [clang++]
# Ubuntu uses GCC which doesn't support coverage, and we want to compile with both GCC and Clang.
include:
- os: ubuntu-20.04
compiler: g++
- os: ubuntu-20.04
compiler: clang++
extra_compile_flags: "-DTAILSLIDE_COVERAGE=ON"
check_coverage: true
name: ${{matrix.os}} - ${{matrix.compiler}}
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v1
- name: make test
run: |
mkdir build
pushd build
CXX=${{matrix.compiler}} cmake .. -DTAILSLIDE_SANITIZE=ON -DTAILSLIDE_CI_RUN=ON ${{matrix.extra_compile_flags}}
cmake --build .
popd
mkdir coverage
./build/tailslide-test
- name: Merge coverage data
if: ${{matrix.check_coverage}}
run: |
llvm-profdata-11 merge default.profraw -o default.profdata
llvm-cov-11 report -ignore-filename-regex=\(tests\|extern\)/.* -show-region-summary=false --instr-profile default.profdata build/tailslide-test
llvm-cov-11 export -ignore-filename-regex=\(tests\|extern\)/.* -format lcov --instr-profile default.profdata build/tailslide-test > coverage.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
if: ${{matrix.check_coverage}}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.info
directory: ./coverage/reports/
name: codecov-umbrella
fail_ci_if_error: false
path_to_write_report: ./coverage/codecov_report.txt
verbose: false
build:
needs: test
strategy:
matrix:
# os: [ ubuntu-20.04, macos-11 ]
os: [ ubuntu-20.04 ]
name: Build ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v1
- name: Install Mac Dependencies
if: ${{ runner.os == 'macOS' }}
shell: bash
run: |
bash bootstrap_macos.sh
- uses: secondlife/action-autobuild@v3
with:
addrsize: "64"
cygwin-packages: flex bison