@@ -78,14 +78,33 @@ jobs:
78
78
shell : ${{ matrix.shell }}
79
79
nim_ref : ${{ matrix.nim.ref }}
80
80
81
- - name : Setup Go
82
- uses : actions/setup-go@v5
83
- with :
84
- go-version : ' ~1.16.0' # That's the minimum Go version that works with arm.
85
81
86
82
- name : Install p2pd
87
83
run : |
88
- V=1 bash scripts/build_p2pd.sh p2pdCache 124530a3
84
+ mkdir -p .ci-bin
85
+ if [ "${{ matrix.platform.os }}" = "windows" ]; then
86
+ curl -sLO "https://github.com/libp2p/go-libp2p-daemon/releases/download/v0.9.1/p2pd-windows-amd64.exe"
87
+ mv p2pd-windows-amd64.exe .ci-bin/p2pd.exe
88
+ elif [ "${{ matrix.platform.os }}" = "macos" ]; then
89
+ if [ "${{ matrix.platform.cpu }}" = "arm64" ]; then
90
+ curl -sLO "https://github.com/libp2p/go-libp2p-daemon/releases/download/v0.9.1/p2pd-darwin-arm64"
91
+ mv p2pd-darwin-arm64 .ci-bin/p2pd
92
+ else
93
+ curl -sLO "https://github.com/libp2p/go-libp2p-daemon/releases/download/v0.9.1/p2pd-darwin-amd64"
94
+ mv p2pd-darwin-amd64 .ci-bin/p2pd
95
+ fi
96
+ chmod +x .ci-bin/p2pd
97
+ else
98
+ if [ "${{ matrix.platform.cpu }}" = "i386" ]; then
99
+ echo "No official i386 build available for p2pd. Exiting..."
100
+ exit 1
101
+ else
102
+ curl -sLO "https://github.com/libp2p/go-libp2p-daemon/releases/download/v0.9.1/p2pd-linux-amd64"
103
+ mv p2pd-linux-amd64 .ci-bin/p2pd
104
+ chmod +x .ci-bin/p2pd
105
+ fi
106
+ fi
107
+ echo "${PWD}/.ci-bin" >> $GITHUB_PATH
89
108
90
109
- name : Restore deps from cache
91
110
id : deps-cache
@@ -96,15 +115,10 @@ jobs:
96
115
# The change happened on Nimble v0.14.0. Also forcing the deps to be reinstalled on each os and cpu.
97
116
key : nimbledeps-${{ matrix.nim.ref }}-${{ matrix.builder }}-${{ matrix.platform.cpu }}-${{ hashFiles('.pinned') }} # hashFiles returns a different value on windows
98
117
99
- - name : Setup python
100
- run : |
101
- mkdir .venv
102
- python -m venv .venv
103
118
104
119
- name : Install deps
105
120
if : ${{ steps.deps-cache.outputs.cache-hit != 'true' }}
106
121
run : |
107
- source .venv/bin/activate
108
122
nimble install_pinned
109
123
110
124
- name : Use gcc 14
@@ -118,8 +132,6 @@ jobs:
118
132
119
133
- name : Run tests
120
134
run : |
121
- source .venv/bin/activate
122
-
123
135
nim --version
124
136
nimble --version
125
137
gcc --version
0 commit comments