11name : Publish Windows Releases
22on :
3+ workflow_dispatch : ~
34 release :
45 types : [created]
56 push :
1415 strategy :
1516 fail-fast : true
1617 matrix :
17- arch : [x64, x86]
18+ # arch: [x64, x86]
19+ arch : [x64]
1820 steps :
1921 - name : Checkout
2022 uses : actions/checkout@v5
@@ -29,19 +31,17 @@ jobs:
2931 cd tcl
3032 Invoke-WebRequest -Uri https://github.com/tcltk/tcl/releases/download/core-9-0-3/tcl9.0.3-src.tar.gz -outFile tcl.tar.gz
3133 7z x tcl.tar.gz -so | 7z x -aoa -si -ttar -o"."
32- dir
33- dir tcl9.0.3
3434 cd tcl9.0.3\win
3535 mkdir install
3636 nmake -f Makefile.vc all INSTALLDIR=.\install
3737 nmake -f Makefile.vc install INSTALLDIR=.\install
38- dir
39- dir install
38+ 7z a tcl.zip .\install
4039 - name : Upload TCL library
4140 uses : actions/upload-artifact@v5
4241 with :
43- name : tcl-${{ matrix.php }}-${{ matrix.arch }}
44- path : win\install
42+ name : tcl-${{ matrix.arch }}
43+ path : tcl\tcl9.0.3\win\tcl.zip
44+ if-no-files-found : error
4545
4646 get-extension-matrix :
4747 runs-on : ubuntu-latest
5555 uses : php/php-windows-builder/extension-matrix@v1
5656 with :
5757 arch-list : x64
58- php-version-list : 8.0
58+ php-version-list : " 8.0"
5959 ts-list : nts
6060
6161 build :
@@ -68,18 +68,54 @@ jobs:
6868 steps :
6969 - name : Checkout
7070 uses : actions/checkout@v5
71-
71+ - name : prepare
72+ run : |
73+ mkdir ..\tcl
7274 - name : Download native lib
7375 uses : actions/download-artifact@v5
7476 with :
7577 name : tcl-${{ matrix.arch }}
76- - name : Build the extension
77- uses : php/php-windows-builder/extension@v1
78+
79+ - name : Extract native lib
80+ run : |
81+ dir
82+ 7z x tcl.zip -o"..\tcl"
83+ dir ..
84+
85+ - name : Setup PHP SDK
86+ id : setup-php-windows
87+ uses : php/setup-php-sdk@v0.12
7888 with :
79- php- version : ${{ matrix.php-version }}
89+ version : ${{ matrix.php-version }}
8090 arch : ${{ matrix.arch }}
8191 ts : ${{ matrix.ts }}
82- args : ' --with-expect'
92+
93+ - name : Enable Developer Command Prompt
94+ uses : ilammy/msvc-dev-cmd@v1
95+ with :
96+ arch : ${{ matrix.platform }}
97+ toolset : ${{ steps.setup-php-windows.outputs.toolset }}
98+
99+ - run : phpize
100+ - run : configure --with-expect --with-extra-includes="..\tcl\include" --with-extra-libs="..\tcl\lib" --with-prefix=${{steps.setup-php-sdk.outputs.prefix}}
101+ - run : nmake
102+ - run : nmake test TESTS=tests
103+
104+
105+ # - name: Upload TCL library
106+ # uses: actions/upload-artifact@v5
107+ # with:
108+ # name: tcl-${{ matrix.php }}-${{ matrix.arch }}
109+ # path: |
110+ # win\install\
111+
112+ # - name: Build the extension
113+ # uses: php/php-windows-builder/extension@v1
114+ # with:
115+ # php-version: ${{ matrix.php-version }}
116+ # arch: ${{ matrix.arch }}
117+ # ts: ${{ matrix.ts }}
118+ # args: '--with-expect'
83119 release :
84120 runs-on : ubuntu-latest
85121 needs : build
0 commit comments