fixed shadowsocks-rust build
All checks were successful
CI / Build shadowsocks-rust docker images (push) Successful in 11m59s
All checks were successful
CI / Build shadowsocks-rust docker images (push) Successful in 11m59s
This commit is contained in:
@@ -9,14 +9,14 @@ jobs:
|
|||||||
"Build shadowsocks-rust docker images":
|
"Build shadowsocks-rust docker images":
|
||||||
runs-on: woryzen
|
runs-on: woryzen
|
||||||
steps:
|
steps:
|
||||||
-
|
|
||||||
name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3.4.0
|
||||||
with:
|
with:
|
||||||
driver: docker-container
|
driver: docker-container
|
||||||
|
platforms: |
|
||||||
|
linux/amd64
|
||||||
|
linux/arm64
|
||||||
-
|
-
|
||||||
name: Login to Gitea container registry
|
name: Login to Gitea container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
FROM --platform=$TARGETPLATFORM rust:alpine AS builder
|
FROM --platform=$BUILDPLATFORM rust:alpine AS builder
|
||||||
|
|
||||||
ARG VERSION TARGETPLATFORM
|
ARG VERSION TARGETPLATFORM BUILDPLATFORM
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk add --no-cache build-base cmake llvm15-dev clang15-libclang clang15 rust-bindgen git rustup
|
&& apk add --no-cache build-base cmake llvm15-dev clang15-libclang clang15 rust-bindgen git rustup
|
||||||
@@ -40,7 +40,7 @@ RUN case "$TARGETPLATFORM" in \
|
|||||||
&& RUSTFLAGS="-C linker=$CC" CC=$CC cargo build --target "$RUST_TARGET" --release --features "full-extra" \
|
&& RUSTFLAGS="-C linker=$CC" CC=$CC cargo build --target "$RUST_TARGET" --release --features "full-extra" \
|
||||||
&& mv target/$RUST_TARGET/release/ss* target/release/
|
&& mv target/$RUST_TARGET/release/ss* target/release/
|
||||||
|
|
||||||
FROM alpine:3.20 AS sslocal
|
FROM --platform=$TARGETPLATFORM alpine:3.20 AS sslocal
|
||||||
|
|
||||||
# NOTE: Please be careful to change the path of these binaries, refer to #1149 for more information.
|
# NOTE: Please be careful to change the path of these binaries, refer to #1149 for more information.
|
||||||
COPY --from=builder /root/shadowsocks-rust/target/release/sslocal /usr/bin/
|
COPY --from=builder /root/shadowsocks-rust/target/release/sslocal /usr/bin/
|
||||||
|
Reference in New Issue
Block a user