Add job to test macOS build configuration

This commit is contained in:
timvisee
2023-07-07 08:28:00 +02:00
parent 33afc616ce
commit c0b0934c07
2 changed files with 30 additions and 6 deletions
+3 -3
View File
@@ -47,7 +47,7 @@ jobs:
bin: qdrant
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}
build-windows-binaries:
strategy:
matrix:
@@ -63,10 +63,10 @@ jobs:
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:
+27 -3
View File
@@ -2,7 +2,7 @@ name: Tests
on:
push:
branches: [ master, dev ]
branches: [ master, dev, test-ci ]
pull_request:
branches: [ '**' ]
@@ -15,11 +15,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- name: Install minimal stable
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install Protoc
@@ -29,6 +29,30 @@ jobs:
- name: Run tests
run: cargo test --all
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 }}
# TODO: env:
# TODO: PROTOC: /usr/local/bin/protoc
steps:
- name: Install dependencies
run: |
brew update-reset
brew install gcc cmake protobuf-c
- name: Install minimal stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: actions/checkout@v3
- name: Cargo build
run: cargo build --workspace --all-features
# build:
# runs-on: ubuntu-latest
# steps: