Skip to content

Decimal Type determined at Compile Time (#26) #203

Decimal Type determined at Compile Time (#26)

Decimal Type determined at Compile Time (#26) #203

Workflow file for this run

name: Build, Test, and Lint
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
container: huskysat/lost:latest
steps:
- uses: actions/checkout@v3
- name: Build Double
run: CXXFLAGS=-Werror make -j$(($(nproc)+1))
- name: Test Double
run: CXXFLAGS=-Werror make test -j$(($(nproc)+1))
- name: Build Float
run: CXXFLAGS=-Werror make clean all LOST_FLOAT_MODE=1 -j$(($(nproc)+1))
- name: Test Float
run: CXXFLAGS=-Werror make test LOST_FLOAT_MODE=1 -j$(($(nproc)+1))
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: pip install cpplint
- name: Lint
run: make lint
- name: Line Endings
uses: erclu/check-crlf@v1