Skip to content

Commit 5fcc821

Browse files
committed
Remove windows build from tests workflow
1 parent fa15755 commit 5fcc821

File tree

2 files changed

+1
-79
lines changed

2 files changed

+1
-79
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -78,81 +78,3 @@ jobs:
7878
run: TEST_PHP_ARGS="-q -x --show-diff -g FAIL,XFAIL,BORK,WARN,LEAK,SKIP" make test
7979
env:
8080
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-
uses: cmb69/[email protected]
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

.github/workflows/windows-release-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
workflow: tests.yml
2626
workflow_conclusion: success
2727
commit: ${{ github.sha }}
28-
# Note: keep this in sync with the uploaded artifact name in tests.yml
28+
# Note: keep this in sync with the uploaded artifact name in windows-tests.yml
2929
name: php_mongodb-${{ github.sha }}-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.arch }}
3030

3131
- name: Create and attach release archive

0 commit comments

Comments
 (0)