Skip to content

feat(corpora_ai): support azure_endpoint for openai as well #1

feat(corpora_ai): support azure_endpoint for openai as well

feat(corpora_ai): support azure_endpoint for openai as well #1

Workflow file for this run

name: Cross-Platform Rust Build
on:
# TODO: we can remove after testing on the branch
pull_request:
paths:
- '.github/**'
push:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: windows-latest
target: aarch64-pc-windows-msvc
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
- name: Install additional tools for cross-compilation (Linux only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y musl-tools gcc-aarch64-linux-gnu libssl-dev:arm64 linux-headers-arm64
- name: Build the project
working-directory: rs
run: |
rustup target add ${{ matrix.target }}
cargo build --release --target ${{ matrix.target }}
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}-binary
path: rs/target/${{ matrix.target }}/release/corpora