mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
Only generate aarch64 binary with action-rs
This commit is contained in:
parent
87115b02d9
commit
ef7e7a8f11
39
.github/workflows/publish-crossbuild.yml
vendored
39
.github/workflows/publish-crossbuild.yml
vendored
@ -22,17 +22,6 @@ jobs:
|
|||||||
linker: gcc-aarch64-linux-gnu
|
linker: gcc-aarch64-linux-gnu
|
||||||
use-cross: true
|
use-cross: true
|
||||||
asset_name: meilisearch-linux-aarch64
|
asset_name: meilisearch-linux-aarch64
|
||||||
- build: aarch64
|
|
||||||
os: ubuntu-latest
|
|
||||||
target: aarch64-unknown-linux-musl
|
|
||||||
linker: gcc-aarch64-linux-gnu
|
|
||||||
use-cross: true
|
|
||||||
asset_name: meilisearch-linux-aarch64-musl
|
|
||||||
- build: linux
|
|
||||||
os: ubuntu-latest
|
|
||||||
target: x86_64-unknown-linux-musl
|
|
||||||
use-cross: true
|
|
||||||
asset_name: meilisearch-linux-amd64-musl
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -68,19 +57,6 @@ jobs:
|
|||||||
echo 'JEMALLOC_SYS_WITH_LG_PAGE=16' >> $GITHUB_ENV
|
echo 'JEMALLOC_SYS_WITH_LG_PAGE=16' >> $GITHUB_ENV
|
||||||
echo RUSTFLAGS="-Clink-arg=-fuse-ld=gold" >> $GITHUB_ENV
|
echo RUSTFLAGS="-Clink-arg=-fuse-ld=gold" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Configure target aarch64 MUSL
|
|
||||||
if: matrix.target == 'aarch64-unknown-linux-musl'
|
|
||||||
# env:
|
|
||||||
# JEMALLOC_SYS_WITH_LG_PAGE: 16
|
|
||||||
run: |
|
|
||||||
sudo apt-get install -y musl-tools
|
|
||||||
echo 'JEMALLOC_SYS_WITH_LG_PAGE=16' >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Configure target x86_64 MUSL
|
|
||||||
if: matrix.target == 'x86_64-unknown-linux-musl'
|
|
||||||
run: |
|
|
||||||
sudo apt-get install -y musl-tools
|
|
||||||
|
|
||||||
- name: Cargo build
|
- name: Cargo build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
@ -88,13 +64,6 @@ jobs:
|
|||||||
use-cross: ${{ matrix.use-cross }}
|
use-cross: ${{ matrix.use-cross }}
|
||||||
args: --release --target ${{ matrix.target }}
|
args: --release --target ${{ matrix.target }}
|
||||||
|
|
||||||
# Strip debuginfo for target aarch64 GNU
|
|
||||||
# MUSL binary are static linked
|
|
||||||
- name: Strip debuginfo for target aarch64 GNU
|
|
||||||
if: matrix.target == 'aarch64-unknown-linux-gnu'
|
|
||||||
run: |
|
|
||||||
/usr/bin/aarch64-linux-gnu-strip --strip-debug --target=elf64-littleaarch64 target/${{ matrix.target }}/release/meilisearch -o target/${{ matrix.target }}/release/meilisearch-stripped
|
|
||||||
|
|
||||||
- name: List target output files
|
- name: List target output files
|
||||||
run: ls -lR ./target
|
run: ls -lR ./target
|
||||||
|
|
||||||
@ -105,11 +74,3 @@ jobs:
|
|||||||
file: target/${{ matrix.target }}/release/meilisearch
|
file: target/${{ matrix.target }}/release/meilisearch
|
||||||
asset_name: ${{ matrix.asset_name }}
|
asset_name: ${{ matrix.asset_name }}
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ github.ref }}
|
||||||
- name: Upload stripped binary to release (aarch64 GNU only)
|
|
||||||
if: matrix.target == 'aarch64-unknown-linux-gnu'
|
|
||||||
uses: svenstaro/upload-release-action@v1-release
|
|
||||||
with:
|
|
||||||
repo_token: ${{ secrets.PUBLISH_TOKEN }}
|
|
||||||
file: target/${{ matrix.target }}/release/meilisearch-stripped
|
|
||||||
asset_name: ${{ matrix.asset_name }}-stripped
|
|
||||||
tag: ${{ github.ref }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user