diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-04-27 11:22:45 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-04-27 11:22:45 +0200 |
commit | 2811cc9a77c17ac03aac9c1b582040827a76b0d9 (patch) | |
tree | 743856891ab7ac52ee13f717fe8c181bf9faae9a /.github |
Squashed 'deps/cpp-httplib/' content from commit c58b005
git-subtree-dir: deps/cpp-httplib
git-subtree-split: c58b00580ee66a248c2ef20334bb84319ccde310
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yaml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..37d2fdf --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,41 @@ +name: test + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macOS-latest, ubuntu-latest, windows-latest] + + steps: + - name: prepare git for checkout on windows + if: matrix.os == 'windows-latest' + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - name: checkout + uses: actions/checkout@v2 + - name: install brotli library on ubuntu + if: matrix.os == 'ubuntu-latest' + run: sudo apt update && sudo apt-get install -y libbrotli-dev + - name: install brotli library on macOS + if: matrix.os == 'macOS-latest' + run: brew install brotli + - name: make + if: matrix.os != 'windows-latest' + run: cd test && make + - name: check fuzz test target + if: matrix.os == 'ubuntu-latest' + run: cd test && make -f Makefile.fuzz_test + - name: setup msbuild on windows + if: matrix.os == 'windows-latest' + uses: microsoft/setup-msbuild@v1.0.2 + - name: make-windows + if: matrix.os == 'windows-latest' + run: | + cd test + msbuild.exe test.sln /verbosity:minimal /t:Build "/p:Configuration=Release;Platform=x64" + x64\Release\test.exe |