File tree 2 files changed +19
-0
lines changed 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 77
77
78
78
cp ./scripts/livepeer-vmagent ./bin/livepeer-vmagent
79
79
80
+ - name : Configure Rust Toolchain
81
+ uses : actions-rs/toolchain@v1
82
+ with :
83
+ toolchain : stable
84
+
85
+ - name : Build c2patool
86
+ uses : baptiste0928/cargo-install@v2
87
+ with :
88
+ crate : c2patool
89
+ version : " 0.6.2"
90
+
91
+ - name : Copy c2patool
92
+ run : |
93
+ cp "${HOME}/.cargo/bin/c2patool" ./bin/c2patool
94
+
80
95
- name : Strip binaries of debug symbols
81
96
if : matrix.platform.name == 'linux' && matrix.architecture == 'amd64'
82
97
run : |
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ RUN npm install --prefix /app/go-tools/w3
49
49
# chown needed to make everything owned by one user for userspace podman execution
50
50
RUN chown -R root:root /app/go-tools/w3
51
51
52
+ FROM rust:1.73.0 as rust-build
53
+ RUN cargo install --version 0.6.2 c2patool
54
+
52
55
FROM ubuntu:22.04 AS catalyst
53
56
54
57
ENV DEBIAN_FRONTEND=noninteractive
@@ -73,6 +76,7 @@ RUN apt update && apt install -yqq \
73
76
# Most of ./scripts is for livepeer-in-a-box except livepeer-vmagent, which is used in production in Catalyst proper
74
77
ADD ./scripts/livepeer-vmagent /usr/local/bin
75
78
COPY --from=catalyst-build /opt/bin/ /usr/local/bin/
79
+ COPY --from=rust-build /usr/local/cargo/bin/c2patool /bin/
76
80
COPY --from=node-build /app/go-tools/w3 /opt/local/lib/livepeer-w3
77
81
RUN ln -s /opt/local/lib/livepeer-w3/livepeer-w3.js /usr/local/bin/livepeer-w3 && \
78
82
npm install -g ipfs-car
You can’t perform that action at this time.
0 commit comments