Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Add Windows build and test CI #280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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