Doc for newversion #100
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# TODO: Test against latest previews too. This currently doesn't work because preview releases don't publish | |
# a milvus-standalone-docker-compose.yml | |
milvus_version: [v2.2.11] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 | |
- name: Start Milvus | |
run: | | |
wget https://github.com/milvus-io/milvus/releases/download/${{ matrix.milvus_version }}/milvus-standalone-docker-compose.yml -O docker-compose.yml | |
# Turn on authorization. This involves downloading milvus.yml and setting authorization to true, and then | |
# using a docker-compose.override.yml file to get it picked up. | |
wget https://raw.githubusercontent.com/milvus-io/milvus/${{ matrix.milvus_version }}/configs/milvus.yaml | |
sed -i 's/authorizationEnabled: false/authorizationEnabled: true/' milvus.yaml | |
cat <<EOF > docker-compose.override.yml | |
services: | |
standalone: | |
volumes: | |
- ${PWD}/milvus.yaml:/milvus/configs/milvus.yaml | |
EOF | |
sudo docker-compose up -d | |
- name: Setup .NET SDKs | |
uses: actions/setup-dotnet@v3 | |
- name: Wait for Milvus to become available | |
run: sleep 30 # TODO: Find a better way to do this, e.g. try polling with curl until we detect that milvus is up | |
- name: Test | |
run: dotnet test --logger "GitHubActions;report-warnings=false" | |
- name: Pack | |
run: dotnet pack -c Release -o Artifacts | |
- name: Upload artifacts (nupkg) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nupkgs | |
path: | | |
Artifacts/*.nupkg | |
Artifacts/*.snupkg | |