mirror of
https://github.com/rustmailer/bichon.git
synced 2026-08-03 07:48:34 +02:00
update
This commit is contained in:
@@ -21,9 +21,6 @@ jobs:
|
|||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
- target: x86_64-unknown-linux-musl
|
- target: x86_64-unknown-linux-musl
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
- target: aarch64-unknown-linux-gnu
|
|
||||||
os: ubuntu-latest
|
|
||||||
runs-on: ubuntu-latest-arm64
|
|
||||||
- target: x86_64-apple-darwin
|
- target: x86_64-apple-darwin
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
- target: x86_64-pc-windows-msvc
|
- target: x86_64-pc-windows-msvc
|
||||||
@@ -60,12 +57,6 @@ jobs:
|
|||||||
run: sudo apt-get update && sudo apt-get install -y musl-tools
|
run: sudo apt-get update && sudo apt-get install -y musl-tools
|
||||||
|
|
||||||
- name: Build Rust backend
|
- 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 }}
|
run: cargo build --release --features vendored-openssl --target=${{ matrix.target }}
|
||||||
|
|
||||||
- name: Strip binary (Linux and macOS)
|
- name: Strip binary (Linux and macOS)
|
||||||
@@ -153,24 +144,15 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download Linux musl artifact (amd64)
|
- name: Download Linux musl artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: x86_64-unknown-linux-musl
|
name: x86_64-unknown-linux-musl
|
||||||
path: artifacts/amd64
|
path: artifacts
|
||||||
|
|
||||||
- name: Download Linux artifact (arm64)
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: aarch64-unknown-linux-gnu
|
|
||||||
path: artifacts/arm64
|
|
||||||
|
|
||||||
- name: Prepare Docker context
|
- name: Prepare Docker context
|
||||||
run: |
|
run: |
|
||||||
mkdir -p docker/amd64 docker/arm64
|
tar -xzf artifacts/${{ env.BINARY_NAME }}-*.tar.gz -C docker
|
||||||
tar -xzf artifacts/amd64/${{ env.BINARY_NAME }}-*.tar.gz -C docker/amd64
|
|
||||||
tar -xzf artifacts/arm64/${{ env.BINARY_NAME }}-*.tar.gz -C docker/arm64
|
|
||||||
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@@ -185,7 +167,6 @@ jobs:
|
|||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./docker
|
context: ./docker
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
rustmailer/bichon:${{ github.ref_name }}
|
rustmailer/bichon:${{ github.ref_name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user