Files
qdrant/.github/workflows/release-artifacts.yml
Tim Visée 65876f7e8b Also run CI tests on macOS (#2227)
* Also test on macOS

* Remove trailing spaces from GitHub Workflow configurations
2023-07-10 11:36:06 +02:00

76 lines
2.0 KiB
YAML

name: Build and publish release packages
permissions:
contents: write
on:
release:
# 'published' is triggered when publishing draft release, 'created' is not
types: [published]
jobs:
build-linux-binaries:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-multilib clang cmake protobuf-compiler
- uses: actions/checkout@v3
- name: Build and publish
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: qdrant
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}
build-mac-binaries:
strategy:
matrix:
include:
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: |
brew update-reset
brew install gcc cmake protobuf-c
- uses: actions/checkout@v3
- name: Build and publish
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: qdrant
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}
build-windows-binaries:
strategy:
matrix:
include:
- os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install minimal stable
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: cargo build --release --locked
- name: Build and publish
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: qdrant
token: ${{ secrets.GITHUB_TOKEN }}