From 2811cc9a77c17ac03aac9c1b582040827a76b0d9 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 27 Apr 2021 11:22:45 +0200 Subject: Squashed 'deps/cpp-httplib/' content from commit c58b005 git-subtree-dir: deps/cpp-httplib git-subtree-split: c58b00580ee66a248c2ef20334bb84319ccde310 --- .github/workflows/test.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/test.yaml (limited to '.github') 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 -- cgit v1.2.3