Add -fno-rtti and -fno-exceptions #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build + Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
merge_group: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get googletest | |
run: | | |
wget https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip | |
unzip release-1.12.1.zip | |
cd googletest-release-1.12.1 | |
mkdir build | |
cd build | |
cmake .. | |
make | |
- name: Build main executable | |
run: make | |
- name: Build test executable | |
run: make test GTEST_HDR=googletest-release-1.12.1/googletest/include GTEST_LIB=googletest-release-1.12.1/build/lib | |
- name: Run test executable | |
run: ./test | |
- name: Check formatting | |
run: make format-check |