-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix circleci build * Add github actions build * Split CMakeLists.txt into separate subdirectories * Remove declaration of std::hash, using <functional> header * Add operator{==,!=} for comparing At<T> with T * Fix infinite loop in WriteVarIntLoop (cast to u8) * Use data accessor instead of begin()/end() to get char* * Some integer cast fixes * Add text::Write{Nat,Int,Float}, to fix overloading issues * Use CTest for running each unittest executable * Only include -lstdc++fs if necessary * Copy gdtoa library into source tree; modify to compile w/ MSVC * Fix warning when using -2147483648 literal * Use gtest_force_shared_crt to prevent CRT mismatch
- Loading branch information
Showing
63 changed files
with
6,109 additions
and
561 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: CI | ||
|
||
on: | ||
create: | ||
tags: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
|
||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
|
||
- uses: actions/checkout@v1 | ||
with: | ||
submodules: true | ||
|
||
- name: install ninja (ubuntu) | ||
run: sudo apt-get install ninja-build | ||
if: matrix.os == 'ubuntu-latest' | ||
|
||
- name: install ninja (macos) | ||
run: brew install ninja | ||
if: matrix.os == 'macos-latest' | ||
|
||
- name: mkdir | ||
run: mkdir -p out | ||
|
||
- name: cmake (ubuntu) | ||
env: | ||
CC: gcc-9 | ||
CXX: g++-9 | ||
run: cmake .. -G Ninja | ||
working-directory: out | ||
if: matrix.os == 'ubuntu-latest' | ||
|
||
- name: cmake (macos) | ||
run: cmake .. -G Ninja | ||
working-directory: out | ||
if: matrix.os == 'macos-latest' | ||
|
||
- name: cmake (windows) | ||
run: cmake .. | ||
working-directory: out | ||
if: matrix.os == 'windows-latest' | ||
|
||
- name: build | ||
run: cmake --build out | ||
|
||
- name: unittests | ||
run: cmake --build out --target test | ||
if: matrix.os != 'windows-latest' | ||
|
||
- name: unittests (windows) | ||
run: cmake --build out --target RUN_TESTS | ||
if: matrix.os == 'windows-latest' |
Oops, something went wrong.