From 88c063e887f8de76aaff7ca2cf6c49fd9b3fa9b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 25 Mar 2020 13:50:17 +0100 Subject: [PATCH] Publish an ARMv7 binary for the releases --- .github/workflows/publish-binaries.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml index 5ef5652fb..9357f29b6 100644 --- a/.github/workflows/publish-binaries.yml +++ b/.github/workflows/publish-binaries.yml @@ -37,3 +37,27 @@ jobs: file: target/release/${{ matrix.artifact_name }} asset_name: ${{ matrix.asset_name }} tag: ${{ github.ref }} + + publish-armv7: + name: Publish for ARMv7 + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1.0.0 + - uses: uraimo/run-on-arch-action@v1.0.7 + id: runcmd + with: + architecture: armv7 + distribution: ubuntu18.04 + run: | + apt update + apt install -y curl gcc make + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable + source $HOME/.cargo/env + cargo build --release --locked + - name: Upload the binary to release + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/release/meilisearch + asset_name: meilisearch-linux-armv7 + tag: ${{ github.ref }}