add temporal service to builds. (#2842)
This commit is contained in:
@@ -79,6 +79,27 @@ jobs:
|
||||
cp \$GCC_DIR/libgcc_s_seh-1.dll /usr/src/myapp/target/x86_64-pc-windows-gnu/release/ && \
|
||||
cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll /usr/src/myapp/target/x86_64-pc-windows-gnu/release/"
|
||||
|
||||
# 4.5) Build temporal-service for Windows
|
||||
- name: Build temporal-service for Windows
|
||||
run: |
|
||||
echo "Building temporal-service for Windows..."
|
||||
docker run --rm \
|
||||
-v "$(pwd)":/usr/src/myapp \
|
||||
-w /usr/src/myapp/temporal-service \
|
||||
golang:latest \
|
||||
sh -c "GOOS=windows GOARCH=amd64 go build -o temporal-service.exe main.go"
|
||||
echo "temporal-service.exe built successfully"
|
||||
|
||||
# 4.6) Download temporal CLI for Windows
|
||||
- name: Download temporal CLI for Windows
|
||||
run: |
|
||||
echo "Downloading temporal CLI for Windows..."
|
||||
TEMPORAL_VERSION="1.3.0"
|
||||
curl -L "https://github.com/temporalio/cli/releases/download/v${TEMPORAL_VERSION}/temporal_cli_${TEMPORAL_VERSION}_windows_amd64.zip" -o temporal-cli-windows.zip
|
||||
unzip temporal-cli-windows.zip
|
||||
chmod +x temporal.exe
|
||||
echo "temporal CLI downloaded successfully"
|
||||
|
||||
# 5) Prepare Windows binary and DLLs
|
||||
- name: Prepare Windows binary and DLLs
|
||||
run: |
|
||||
@@ -87,6 +108,16 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "./temporal-service/temporal-service.exe" ]; then
|
||||
echo "temporal-service.exe not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "./temporal.exe" ]; then
|
||||
echo "temporal.exe not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Cleaning destination directory..."
|
||||
rm -rf ./ui/desktop/src/bin
|
||||
mkdir -p ./ui/desktop/src/bin
|
||||
@@ -95,6 +126,12 @@ jobs:
|
||||
cp -f ./target/x86_64-pc-windows-gnu/release/goosed.exe ./ui/desktop/src/bin/
|
||||
cp -f ./target/x86_64-pc-windows-gnu/release/*.dll ./ui/desktop/src/bin/
|
||||
|
||||
echo "Copying temporal-service.exe..."
|
||||
cp -f ./temporal-service/temporal-service.exe ./ui/desktop/src/bin/
|
||||
|
||||
echo "Copying temporal.exe..."
|
||||
cp -f ./temporal.exe ./ui/desktop/src/bin/
|
||||
|
||||
# Copy Windows platform files (tools, scripts, etc.)
|
||||
if [ -d "./ui/desktop/src/platform/windows/bin" ]; then
|
||||
echo "Copying Windows platform files..."
|
||||
|
||||
Reference in New Issue
Block a user