Skip to content

Commit a712b23

Browse files
committed
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. cataphract#13, and the failing tests[1]. [1] <https://github.com/cmb69/php-rar/runs/4370012547>
1 parent ab26d28 commit a712b23

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Test
2+
on: [push, pull_request]
3+
jobs:
4+
windows:
5+
defaults:
6+
run:
7+
shell: cmd
8+
strategy:
9+
matrix:
10+
version: ["7.4"]
11+
arch: [x64]
12+
ts: [ts]
13+
runs-on: windows-latest
14+
steps:
15+
- name: Checkout rar
16+
uses: actions/checkout@v2
17+
- name: Setup PHP
18+
id: setup-php
19+
uses: cmb69/[email protected]
20+
with:
21+
version: ${{matrix.version}}
22+
arch: ${{matrix.arch}}
23+
ts: ${{matrix.ts}}
24+
- name: Enable Developer Command Prompt
25+
uses: ilammy/msvc-dev-cmd@v1
26+
with:
27+
arch: ${{matrix.arch}}
28+
toolset: ${{steps.setup-php.outputs.toolset}}
29+
- name: phpize
30+
run: phpize
31+
- name: configure
32+
run: configure --enable-rar --with-prefix=${{steps.setup-php.outputs.prefix}}
33+
- name: make
34+
run: nmake
35+
- name: test
36+
run: copy run-tests8.php run-tests.php && nmake test TESTS="-g FAIL --show-diff tests"

0 commit comments

Comments
 (0)