From 6a67afa48b301222c09d7ea6dadb8592e5ff5c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Eertmans?= Date: Mon, 3 Oct 2022 15:09:39 +0200 Subject: [PATCH 1/2] chore: generate Apple Silicon binaries Closes #2792 --- .github/workflows/publish-binaries.yml | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml index 95088b1ef..23ed2ffb0 100644 --- a/.github/workflows/publish-binaries.yml +++ b/.github/workflows/publish-binaries.yml @@ -66,6 +66,45 @@ jobs: file: target/release/${{ matrix.artifact_name }} asset_name: ${{ matrix.asset_name }} tag: ${{ github.ref }} + + publish-macos-apple-silicon: + name: Publish binary for macOS silicon + runs-on: ${{ matrix.os }} + needs: check-version + continue-on-error: false + strategy: + fail-fast: false + matrix: + include: + - build: aarch64 + os: macos-latest + target: aarch64-apple-darwin + asset_name: meilisearch-macos-apple-silicon + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Installing Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + target: ${{ matrix.target }} + override: true + - name: Cargo build + uses: actions-rs/cargo@v1 + with: + command: build + args: --release --target ${{ matrix.target }} + - name: Upload the binary to release + # No need to upload binaries for dry run (cron) + if: github.event_name != 'schedule' + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.MEILI_BOT_GH_PAT }} + file: target/${{ matrix.target }}/release/meilisearch + asset_name: ${{ matrix.asset_name }} + tag: ${{ github.ref }} publish-aarch64: name: Publish binary for aarch64 From 221e3edf48f247fd7c9667e68bb048461b37aec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Eertmans?= Date: Tue, 4 Oct 2022 19:33:39 +0200 Subject: [PATCH 2/2] Update publish-binaries.yml --- .github/workflows/publish-binaries.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml index 23ed2ffb0..4bfb806f9 100644 --- a/.github/workflows/publish-binaries.yml +++ b/.github/workflows/publish-binaries.yml @@ -76,8 +76,7 @@ jobs: fail-fast: false matrix: include: - - build: aarch64 - os: macos-latest + - os: macos-latest target: aarch64-apple-darwin asset_name: meilisearch-macos-apple-silicon