From a712b23bc6a9f926c9051c610e2056e8653a48b4 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Tue, 30 Nov 2021 17:22:39 +0100 Subject: [PATCH] Basic GH CI for Windows While there is already an AppVeyor CI, the problem with that is that usually only one job runs in parallel, but we want to be able to run the builds for multiple PHP versions. For now, we just run for PHP 7.4, though, since some stuff needs to be fixed, e.g. #13, and the failing tests[1]. [1] --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..af5f8ec --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: Build and Test +on: [push, pull_request] +jobs: + windows: + defaults: + run: + shell: cmd + strategy: + matrix: + version: ["7.4"] + arch: [x64] + ts: [ts] + runs-on: windows-latest + steps: + - name: Checkout rar + uses: actions/checkout@v2 + - name: Setup PHP + id: setup-php + uses: cmb69/setup-php-sdk@v0.2 + 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: phpize + - name: configure + run: configure --enable-rar --with-prefix=${{steps.setup-php.outputs.prefix}} + - name: make + run: nmake + - name: test + run: copy run-tests8.php run-tests.php && nmake test TESTS="-g FAIL --show-diff tests"