This repository was archived by the owner on Aug 1, 2023. It is now read-only.
File tree 5 files changed +13
-5
lines changed
5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 31
31
with :
32
32
path : |
33
33
/tmp/*-ipfs/**
34
+ ./go-libp2p-relay-daemon
34
35
~/.npm
35
36
./node_modules
36
37
key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
56
57
with :
57
58
path : |
58
59
/tmp/*-ipfs/**
60
+ ./go-libp2p-relay-daemon
59
61
~/.npm
60
62
./node_modules
61
63
key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
84
86
with :
85
87
path : |
86
88
/tmp/*-ipfs/**
89
+ ./go-libp2p-relay-daemon
87
90
~/.npm
88
91
./node_modules
89
92
key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
@@ -119,6 +122,7 @@ jobs:
119
122
with :
120
123
path : |
121
124
/tmp/*-ipfs/**
125
+ ./go-libp2p-relay-daemon
122
126
~/.npm
123
127
./node_modules
124
128
key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
@@ -151,6 +155,7 @@ jobs:
151
155
with :
152
156
path : |
153
157
/tmp/*-ipfs/**
158
+ ./go-libp2p-relay-daemon
154
159
~/.npm
155
160
./node_modules
156
161
key : ${{ runner.os }}-build-${{ env.CACHE_NAME }}-${{ github.event.pull_request.head.sha }}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if [ ! -d /tmp/go-ipfs ]; then
25
25
git clone https://github.com/ipfs/go-ipfs.git
26
26
cd go-ipfs
27
27
# set implementation to specific commit
28
- git checkout f13fa35a68723b5702312bed4575911f7f0f2185
28
+ git checkout 8c902b156b1c35d17ce45de2525c80bf71c77b5b # https://github.com/ipfs/go-ipfs/pull/8563
29
29
make build
30
30
fi
31
31
fi
Original file line number Diff line number Diff line change 5
5
6
6
set -eo pipefail
7
7
8
- if ! type relayd; then
8
+ if ! test -e ./go-libp2p-relay-daemon/relayd; then
9
+ echo " Building ./go-libp2p-relay-daemon/relayd binary.."
10
+ rm -rf ./go-libp2p-relay-daemon
9
11
git clone https://github.com/libp2p/go-libp2p-relay-daemon.git
10
12
cd go-libp2p-relay-daemon
11
13
# no releases atm, so we pin implementation to specific commit
12
14
git checkout 65211a0b6d881086feb7c386d780f55c37dff101 # 2021-11-19
13
- go install ./...
15
+ go build ./...
16
+ echo " ./go-libp2p-relay-daemon/relayd is ready"
14
17
fi
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const goOptions = {
20
20
config : {
21
21
// enabled sharding for go with automatic threshold dropped to the minimum
22
22
Internal : {
23
- UnixFSShardingSizeThreshold : "1B"
23
+ UnixFSShardingSizeThreshold : '1B'
24
24
}
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export async function getRelayV (version, factory) {
12
12
if ( relays . has ( version ) ) return relays . get ( version )
13
13
if ( process . env . DEBUG ) console . log ( `Starting relayd_v${ version } ..` ) // eslint-disable-line no-console
14
14
if ( version < 1 || version > 2 ) throw new Error ( 'Unsupported circuit relay version' )
15
- const relayd = command ( `relayd -config scripts/relayd_v${ version } .config.json -id scripts/relayd_v${ version } .identity` )
15
+ const relayd = command ( `go-libp2p-relay-daemon/ relayd -config scripts/relayd_v${ version } .config.json -id scripts/relayd_v${ version } .identity` )
16
16
let id
17
17
for await ( const line of relayd . stdout ) {
18
18
const text = line . toString ( )
You can’t perform that action at this time.
0 commit comments