Skip to content

Commit e55fdfc

Browse files
author
Delta-Kronecker
committed
ci: fix pluggable-transports builds (go install with correct module paths)
1 parent b2f466a commit e55fdfc

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ jobs:
120120
transports:
121121
name: pluggable-transports (Windows x86_64)
122122
runs-on: ubuntu-latest
123-
continue-on-error: true
124123
steps:
125124
- uses: actions/setup-go@v5
126125
with:
@@ -129,14 +128,24 @@ jobs:
129128
- name: Build pluggable transports
130129
run: |
131130
set -e
132-
{
133-
echo "=== obfs4 ==="
134-
GOOS=windows GOARCH=amd64 go build -o obfs4proxy.exe github.com/Yawning/obfs4/obfs4proxy 2>&1 || true
135-
echo "=== snowflake client ==="
136-
GOOS=windows GOARCH=amd64 go build -o snowflake-client.exe gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/client 2>&1 || true
137-
echo "=== webtunnel client ==="
138-
GOOS=windows GOARCH=amd64 go build -o webtunnel.exe gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel/client 2>&1 || true
139-
} | tee build-transports.log
131+
mkdir -p out/obfs4 out/snowflake out/webtunnel
132+
133+
echo "=== obfs4 ==="
134+
GOBIN="$PWD/out/obfs4" GOOS=windows GOARCH=amd64 \
135+
go install gitlab.com/yawning/obfs4.git/obfs4proxy@latest
136+
137+
echo "=== snowflake client ==="
138+
GOBIN="$PWD/out/snowflake" GOOS=windows GOARCH=amd64 \
139+
go install gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/client@latest
140+
141+
echo "=== webtunnel client ==="
142+
GOBIN="$PWD/out/webtunnel" GOOS=windows GOARCH=amd64 \
143+
go install gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel/main/client@latest
144+
145+
cp out/obfs4/obfs4proxy.exe out/obfs4proxy.exe
146+
cp out/snowflake/client.exe out/snowflake-client.exe
147+
cp out/webtunnel/client.exe out/webtunnel.exe
148+
ls -la out/*.exe
140149
141150
- name: Upload artifact
142151
if: always()
@@ -147,4 +156,3 @@ jobs:
147156
obfs4proxy.exe
148157
snowflake-client.exe
149158
webtunnel.exe
150-
build-transports.log

0 commit comments

Comments
 (0)