Skip to content

Commit 5c63ef4

Browse files
committed
chore: remove compile step
The machine code is already embedded in the .ahk source
1 parent 2c6c0bc commit 5c63ef4

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/ci.yaml

-19
Original file line numberDiff line numberDiff line change
@@ -106,20 +106,6 @@ jobs:
106106
- name: Checkout
107107
uses: actions/checkout@v4
108108

109-
- name: Compile Caret Hook
110-
run: |
111-
Push-Location .\Lib\GetCaretPosEx\
112-
$VsPath = &(Join-Path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe") -Latest -Products * -Requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -Property InstallationPath
113-
Import-Module (Join-Path $VsPath "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
114-
$targets = @("x64", "x86")
115-
foreach ( $arch in $targets )
116-
{
117-
Enter-VsDevShell -VsInstallPath $VsPath -SkipAutomaticLocation -DevCmdArguments "-arch=$arch"
118-
cl /Fo"GetCaretPosFromHook-$arch" /O2 /Ob1 /c /GS- /std:c++20 /d1reportSingleClassLayoutCaretPosHookData GetCaretPosFromHook.cpp
119-
}
120-
Pop-Location
121-
Move-Item .\Lib\GetCaretPosEx\*.obj .\
122-
123109
- name: Install RcEdit
124110
uses: MinoruSekine/setup-scoop@v4
125111
with:
@@ -148,8 +134,6 @@ jobs:
148134
path: |
149135
AutoHotkey32.exe
150136
AutoHotkey64.exe
151-
GetCaretPosFromHook-x86.obj
152-
GetCaretPosFromHook-x64.obj
153137
154138
build-rabbit:
155139
strategy:
@@ -173,7 +157,6 @@ jobs:
173157
- name: Copy Artifacts
174158
run: |
175159
cp AutoHotkey/${{ matrix.ahk }} Rabbit.exe
176-
cp AutoHotkey/GetCaretPosFromHook-${{ matrix.target }}.obj Lib/GetCaretPosEx/GetCaretPosFromHook.obj
177160
cp Rime/${{ matrix.rime }} rime.dll
178161
cp Icon/Rabbit.ico Rabbit.ico
179162
@@ -185,7 +168,6 @@ jobs:
185168
Lib/librime-ahk/*.ahk
186169
Lib/librime-ahk/LICENSE
187170
Lib/GetCaretPosEx/*.ahk
188-
Lib/GetCaretPosEx/*.obj
189171
Lib/GetCaretPosEx/LICENSE.txt
190172
Lib/*.ahk
191173
rime.dll
@@ -204,7 +186,6 @@ jobs:
204186
Lib/librime-ahk/*.ahk
205187
Lib/librime-ahk/LICENSE
206188
Lib/GetCaretPosEx/*.ahk
207-
Lib/GetCaretPosEx/*.obj
208189
Lib/GetCaretPosEx/LICENSE.txt
209190
Lib/*.ahk
210191
rime.dll

0 commit comments

Comments
 (0)