This commit is contained in:
rustmailer
2025-11-20 12:07:46 +08:00
parent f97e6958d5
commit d1be6aa6f2
+3 -22
View File
@@ -21,9 +21,6 @@ jobs:
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
runs-on: ubuntu-latest-arm64
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
@@ -60,12 +57,6 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Build Rust backend
env:
CC: gcc
CXX: g++
CC_aarch64_unknown_linux_gnu: gcc
CXX_aarch64_unknown_linux_gnu: g++
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: gcc
run: cargo build --release --features vendored-openssl --target=${{ matrix.target }}
- name: Strip binary (Linux and macOS)
@@ -153,24 +144,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Download Linux musl artifact (amd64)
- name: Download Linux musl artifact
uses: actions/download-artifact@v4
with:
name: x86_64-unknown-linux-musl
path: artifacts/amd64
- name: Download Linux artifact (arm64)
uses: actions/download-artifact@v4
with:
name: aarch64-unknown-linux-gnu
path: artifacts/arm64
path: artifacts
- name: Prepare Docker context
run: |
mkdir -p docker/amd64 docker/arm64
tar -xzf artifacts/amd64/${{ env.BINARY_NAME }}-*.tar.gz -C docker/amd64
tar -xzf artifacts/arm64/${{ env.BINARY_NAME }}-*.tar.gz -C docker/arm64
tar -xzf artifacts/${{ env.BINARY_NAME }}-*.tar.gz -C docker
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -185,7 +167,6 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ./docker
platforms: linux/amd64,linux/arm64
push: true
tags: |
rustmailer/bichon:${{ github.ref_name }}