Skip to content

Commit 078c689

Browse files
authored
Merge pull request #120 from getlantern/fix-e2e-cgo
Fix e2e deploy: strip binary, larger droplet, verbose SCP
2 parents 4d3e45d + 6a4885f commit 078c689

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/e2e.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ jobs:
2727
run: |
2828
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build \
2929
-tags "with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_acme,with_clash_api" \
30+
-ldflags="-s -w" \
3031
-o lantern-box \
3132
./cmd
33+
ls -lh lantern-box
3234
3335
- name: Generate test credentials
3436
id: creds
@@ -84,7 +86,7 @@ jobs:
8486
# Create droplet
8587
DROPLET_ID=$(doctl compute droplet create "$DROPLET_NAME" \
8688
--image ubuntu-24-04-x64 \
87-
--size s-1vcpu-1gb \
89+
--size s-2vcpu-2gb \
8890
--region nyc3 \
8991
--ssh-keys "$SSH_KEY_ID" \
9092
--wait \
@@ -124,11 +126,14 @@ jobs:
124126
run: |
125127
SSH_OPTS="-o StrictHostKeyChecking=no -o ServerAliveInterval=30 -i e2e_key"
126128
127-
# Compress binary before upload to avoid SCP timeout on small droplets
129+
# Compress binary before upload
128130
gzip -1 -c lantern-box > lantern-box.gz
131+
ls -lh lantern-box.gz
129132
130133
# Upload files
131-
scp $SSH_OPTS lantern-box.gz cert.pem key.pem plain.wasm root@"$DROPLET_IP":/root/
134+
echo "Starting SCP upload..."
135+
scp -v $SSH_OPTS lantern-box.gz cert.pem key.pem plain.wasm root@"$DROPLET_IP":/root/
136+
echo "SCP upload complete"
132137
133138
# Decompress and make binary executable
134139
ssh $SSH_OPTS root@"$DROPLET_IP" \

0 commit comments

Comments
 (0)