-
Notifications
You must be signed in to change notification settings - Fork 14
63 lines (52 loc) · 1.71 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Windows Build
on:
workflow_dispatch:
release:
types: [published]
jobs:
windows:
defaults:
run:
shell: cmd
strategy:
matrix:
version: ['8.1', '8.2', '8.3']
arch: [x64]
ts: [ts, nts]
# ts: [nts] # we are currently facing an issue on windows with the ZTS build, it crashes during the module initalisation
runs-on: windows-latest
steps:
- name: Checkout PHP-GLFW
uses: actions/checkout@v2
- name: Setup PHP
id: setup-php
uses: php/[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: phpize
- name: configure
run: configure --enable-glfw --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: make
run: nmake
- run: ls -la
- run: cd ${{matrix.arch}} && ls -la
- run: cd ${{matrix.arch}}/Release && ls -la
if: ${{ matrix.ts == 'nts' }}
- uses: actions/upload-artifact@v3
if: ${{ matrix.ts == 'ts' }}
with:
name: glfw_php${{matrix.version}}_ts_${{matrix.arch}}
path: ${{matrix.arch}}/Release_TS/php_glfw.dll
- uses: actions/upload-artifact@v3
if: ${{ matrix.ts == 'nts' }}
with:
name: glfw_php${{matrix.version}}_nts_${{matrix.arch}}
path: ${{matrix.arch}}/Release/php_glfw.dll