diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-14 14:57:55 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 18:42:56 +0300 |
commit | 6aac08009254909aab3e0359f3ad7ab4e87a91e9 (patch) | |
tree | 09dac4cdb5c13e35375e49e44e51aeff7abc6529 /.github/workflows | |
parent | workflows/ci: Bionic to Focal (diff) | |
download | math-server-6aac08009254909aab3e0359f3ad7ab4e87a91e9.tar.gz math-server-6aac08009254909aab3e0359f3ad7ab4e87a91e9.zip |
add `make install`, `make test`, etc.
Tests can be called using CTest now.
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/ci.yml | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc12dcb..ce9c497 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,9 +37,10 @@ jobs: runs-on: '${{ matrix.os }}' name: 'Build: ${{ matrix.os }} / ${{ matrix.toolset }} / ${{ matrix.platform }} / ${{ matrix.configuration }}' env: - toolset: '${{ matrix.toolset }}' - platform: '${{ matrix.platform }}' - configuration: '${{ matrix.configuration }}' + TOOLSET: '${{ matrix.toolset }}' + PLATFORM: '${{ matrix.platform }}' + CONFIGURATION: '${{ matrix.configuration }}' + BOOST_VERSION: 1.71.0 defaults: run: shell: pwsh @@ -52,22 +53,17 @@ jobs: uses: actions/setup-python@v2 with: python-version: '3.x' + - name: Build Boost + run: make deps - name: Build - run: | - cd cmake - python -m project.ci.github.cmake --install -- -D MATH_SERVER_TESTS=ON - - name: Upload the binaries + run: make install + - name: Upload binaries uses: actions/upload-artifact@v2 with: name: 'math-server-${{ matrix.os }}-${{ matrix.toolset }}-${{ matrix.platform }}-${{ matrix.configuration }}' - path: '${{ runner.workspace }}/install/' - - name: Run unit tests - run: ../install/bin/math-server-unit-tests - - name: Run the benchmarks - run: ../install/bin/math-server-benchmarks - - name: Run the stress test - run: ./test/stress_test.sh ../install - if: runner.os == 'Linux' + path: '${{ runner.workspace }}/build/install/' + - name: Test + run: make test publish: needs: [lint] |