From 4ae16050d917b03b7fda4f823937265d868dc088 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 20 Jun 2021 19:34:22 +0200 Subject: [PATCH] Add Windows build and test CI --- .github/workflows/config.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/config.yml diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml new file mode 100644 index 00000000000..567555b4afd --- /dev/null +++ b/.github/workflows/config.yml @@ -0,0 +1,36 @@ +name: Build and Test +on: [push] +jobs: + windows: + defaults: + run: + shell: cmd + strategy: + matrix: + version: ["7.4"] + arch: [x64] + ts: [ts] + runs-on: windows-latest + steps: + - name: Checkout opencensus + uses: actions/checkout@v2 + - name: Setup PHP + id: setup-php + uses: cmb69/setup-php-sdk@v0.1 + with: + version: ${{matrix.version}} + arch: ${{matrix.arch}} + ts: ${{matrix.ts}} + - name: Enable Developer Command Prompt + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{matrix.arch}} + toolset: ${{steps.setup-php.outputs.toolset}} + - name: phpize + run: cd ext && phpize + - name: configure + run: cd ext && configure --enable-opencensus --with-prefix=${{steps.setup-php.outputs.prefix}} + - name: make + run: cd ext && nmake + - name: test + run: cd ext && nmake test TESTS=tests