chore: add ci convert model to onnx #113
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: CI | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ${{ matrix.runs-on }} | |
timeout-minutes: 40 | |
strategy: | |
matrix: | |
include: | |
- os: "windows" | |
name: "amd64" | |
runs-on: "windows-amd" | |
cmake-flags: "" | |
run-e2e: true | |
steps: | |
- name: Clone | |
id: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install make on Windows | |
if: runner.os == 'windows' | |
run: | | |
choco install make -y | |
- name: Install dependencies | |
run: | | |
make install-dependencies | |
- name: Build onnx runtime | |
run: | | |
make build-onnxruntime | |
- name: Build engine | |
run: | | |
make build-engine | |
- name: Build example server | |
run: | | |
make build-example-server | |
- name: Install Python | |
if: ${{matrix.run-e2e}} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Run e2e test | |
if: ${{matrix.run-e2e}} | |
run: | | |
make run-e2e-test | |
- name: Package | |
run: | | |
make package | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: cortex.onnx-${{ matrix.os }}-${{ matrix.name }} | |
path: ./cortex.onnx |