|
78 | 78 | run: TEST_PHP_ARGS="-q -x --show-diff -g FAIL,XFAIL,BORK,WARN,LEAK,SKIP" make test
|
79 | 79 | env:
|
80 | 80 | MONGODB_URI: ${{ steps.setup-mongodb.outputs.cluster-uri }}
|
81 |
| - |
82 |
| - windows-tests: |
83 |
| - name: "Windows Tests" |
84 |
| - runs-on: windows-2022 |
85 |
| - defaults: |
86 |
| - run: |
87 |
| - shell: cmd |
88 |
| - |
89 |
| - strategy: |
90 |
| - fail-fast: true |
91 |
| - matrix: |
92 |
| - php: [ "7.4", "8.0", "8.1", "8.2" ] |
93 |
| - arch: [ x64, x86 ] |
94 |
| - ts: [ ts, nts ] |
95 |
| - |
96 |
| - steps: |
97 |
| - - uses: actions/checkout@v3 |
98 |
| - with: |
99 |
| - fetch-depth: 2 |
100 |
| - submodules: true |
101 |
| - |
102 |
| - - name: Setup PHP SDK |
103 |
| - id: setup-php |
104 |
| - |
105 |
| - with: |
106 |
| - version: ${{ matrix.php }} |
107 |
| - arch: ${{ matrix.arch }} |
108 |
| - ts: ${{ matrix.ts }} |
109 |
| - deps: openssl |
110 |
| - |
111 |
| - - name: Enable Developer Command Prompt |
112 |
| - uses: ilammy/msvc-dev-cmd@v1 |
113 |
| - with: |
114 |
| - arch: ${{ matrix.arch }} |
115 |
| - toolset: ${{ steps.setup-php.outputs.toolset }} |
116 |
| - |
117 |
| - - name: phpize |
118 |
| - run: phpize |
119 |
| - |
120 |
| - - name: configure |
121 |
| - run: configure --enable-mongodb --with-mongodb-sasl=yes --with-mongodb-client-side-encryption=yes --enable-debug-pack --with-prefix=${{ steps.setup-php.outputs.prefix }} |
122 |
| - |
123 |
| - - name: nmake |
124 |
| - run: nmake /nologo |
125 |
| - |
126 |
| - - name: Start MongoDB |
127 |
| - run: | |
128 |
| - sc config MongoDB start= auto |
129 |
| - sc start MongoDB |
130 |
| -
|
131 |
| - - name: Wait until MongoDB is available |
132 |
| - run: .github/workflows/wait-for-mongodb.bat |
133 |
| - |
134 |
| - - name: Run Tests |
135 |
| - run: nmake /nologo test |
136 |
| - env: |
137 |
| - NO_INTERACTION: 1 |
138 |
| - REPORT_EXIT_STATUS: 1 |
139 |
| - TESTS: --show-diff |
140 |
| - |
141 |
| - - name: Copy DLL and PDB files to CWD |
142 |
| - if: ${{ github.event_name == 'push' }} |
143 |
| - run: | |
144 |
| - cp .github/workflows/get-build-dir.bat . |
145 |
| - for /F "usebackq tokens=*" %%i in (`get-build-dir.bat`) do set BUILD_DIR=%%i |
146 |
| - echo BUILD_DIR=%BUILD_DIR% |
147 |
| - cp %BUILD_DIR%\php_mongodb.dll . |
148 |
| - cp %BUILD_DIR%\php_mongodb.pdb . |
149 |
| -
|
150 |
| - - name: Upload DLL and PDB files as build artifacts |
151 |
| - if: ${{ github.event_name == 'push' }} |
152 |
| - uses: actions/upload-artifact@v3 |
153 |
| - with: |
154 |
| - name: php_mongodb-${{ github.sha }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.arch }} |
155 |
| - path: | |
156 |
| - php_mongodb.dll |
157 |
| - php_mongodb.pdb |
158 |
| - retention-days: 3 |
0 commit comments