Skip to content

Commit b053656

Browse files
committed
fixing yml
1 parent 2999427 commit b053656

1 file changed

Lines changed: 28 additions & 9 deletions

File tree

.github/workflows/ec2-integration-test.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,37 @@ jobs:
8585
run: sudo apt-get update && sudo apt-get install -y resolvconf
8686

8787

88-
# Add this step to enable IPv6 via Cloudflare Warp
89-
- name: Setup Cloudflare Warp for IPv6
90-
uses: fscarmen/warp-on-actions@v1.3
91-
with:
92-
stack: dual # Enables both IPv4 and IPv6 (default is dual, but explicit for clarity)
88+
# Manual setup for Cloudflare Warp to enable IPv6
89+
- name: Setup Cloudflare Warp for IPv6 (Manual)
90+
timeout-minutes: 5 # Fail fast if it hangs
91+
run: |
92+
echo "Installing Cloudflare Warp..."
93+
sudo apt-get update
94+
curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
95+
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ jammy main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list
96+
sudo apt-get update
97+
sudo apt-get install -y cloudflare-warp
98+
echo "Registering Warp (with retry)..."
99+
warp-cli registration new --accept-tos || (echo "Registration failed, retrying..." && warp-cli registration new --accept-tos)
100+
echo "Setting mode to warp+doh for full WARP with IPv6 support..."
101+
warp-cli mode warp+doh --accept-tos
102+
echo "Excluding Azure DNS IP to avoid resolution timeouts..."
103+
warp-cli add-excluded-route 168.63.129.16/32 --accept-tos
104+
echo "Connecting Warp..."
105+
warp-cli connect --accept-tos
106+
sleep 10 # Wait for daemon to stabilize
107+
warp-cli status || echo "Warp status check failed"
93108
94-
# Check IPv6 connectivity
95109
- name: Debug IPv6 connectivity
96110
run: |
97-
echo "Testing IPv6 connectivity..."
98-
curl -6 ifconfig.io || echo "No IPv6"
99-
ping6 google.com -c 3 || echo "Can't reach IPv6 internet"
111+
echo "Warp status:"
112+
warp-cli status || echo "Warp not running"
113+
echo "IPv6 address:"
114+
curl -6 ifconfig.io || echo "No IPv6 address"
115+
echo "Ping IPv6:"
116+
ping6 -c 3 google.com || echo "IPv6 ping failed"
117+
echo "DNS resolution:"
118+
dig AAAA google.com || echo "IPv6 DNS failed"
100119
101120
# nick-fields/retry@v2 starts at base dir
102121
- name: Terraform apply

0 commit comments

Comments
 (0)