Skip to content

Commit c4b8cbe

Browse files
authored
Merge pull request #11 from pandanotabear/main
fix: wrong compiler in windows build
2 parents 3a10f4e + a47c2d0 commit c4b8cbe

File tree

4 files changed

+826
-406
lines changed

4 files changed

+826
-406
lines changed

.github/workflows/cross-compile.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
# Windows x64 - PHP8.0
3636
- build: x86_64-pc-windows-msvc
37-
os: windows-latest
37+
os: windows-2019
3838
target: x86_64-pc-windows-msvc
3939
php-versions: '8.0'
4040

@@ -57,7 +57,7 @@ jobs:
5757

5858
# Windows x64 - PHP8.1
5959
- build: x86_64-pc-windows-msvc
60-
os: windows-latest
60+
os: windows-2019
6161
target: x86_64-pc-windows-msvc
6262
php-versions: '8.1'
6363

@@ -80,7 +80,7 @@ jobs:
8080

8181
# Windows x64 - PHP8.2
8282
- build: x86_64-pc-windows-msvc
83-
os: windows-latest
83+
os: windows-2019
8484
target: x86_64-pc-windows-msvc
8585
php-versions: '8.2'
8686

@@ -103,7 +103,7 @@ jobs:
103103

104104
# Windows x64 - PHP8.3
105105
- build: x86_64-pc-windows-msvc
106-
os: windows-latest
106+
os: windows-2019
107107
target: x86_64-pc-windows-msvc
108108
php-versions: '8.3'
109109

@@ -116,13 +116,13 @@ jobs:
116116
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
117117

118118
- name: Install Rust (MacOS and Linux)
119-
if: matrix.os != 'windows-latest'
119+
if: matrix.os != 'windows-2019'
120120
uses: dtolnay/rust-toolchain@nightly
121121
with:
122122
targets: ${{ matrix.target }}
123123

124124
- name: Install Rust (Windows)
125-
if: matrix.os == 'windows-latest'
125+
if: matrix.os == 'windows-2019'
126126
uses: dtolnay/rust-toolchain@stable
127127
with:
128128
targets: ${{ matrix.target }}
@@ -160,7 +160,7 @@ jobs:
160160
mv "target/${{ matrix.target }}/release/lib${binary_name}.dylib" "$dirname"
161161
mv "target/${{ matrix.target }}/release/lib${binary_name}.so" "$dirname"
162162
mv "libsql_php_extension.stubs.php" "$dirname"
163-
elif [ "${{ matrix.os }}" = "windows-latest" ]; then
163+
elif [ "${{ matrix.os }}" = "windows-2019" ]; then
164164
mv "target/${{ matrix.target }}/release/${binary_name}.dll" "$dirname"
165165
mv "libsql_php_extension.stubs.php" "$dirname"
166166
ls "target/${{ matrix.target }}/release"
@@ -169,7 +169,7 @@ jobs:
169169
mv "libsql_php_extension.stubs.php" "$dirname"
170170
fi
171171
172-
if [ "${{ matrix.os }}" = "windows-latest" ]; then
172+
if [ "${{ matrix.os }}" = "windows-2019" ]; then
173173
7z a "$dirname.zip" "$dirname"
174174
echo "ASSET=$dirname.zip" >> $GITHUB_ENV
175175
else

0 commit comments

Comments
 (0)