-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrading to beta V 2 of ort with optional compilation of GPU #63
Conversation
…d to test the upload to server left
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: x86_64-apple-darwin,aarch64-apple-darwin | ||
|
||
- name: Build macOS binaries | ||
working-directory: modules/c-wrapper | ||
run: | | ||
cargo build --release --target x86_64-apple-darwin | ||
cargo build --release --target aarch64-apple-darwin | ||
|
||
- name: Upload macOS artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: macos-binaries | ||
path: modules/c-wrapper/target/*/release/ | ||
|
||
linux: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: x86_64-unknown-linux-gnu,aarch64-unknown-linux-gnu | ||
|
||
- name: Build Linux binaries | ||
working-directory: modules/c-wrapper | ||
run: | | ||
cargo build --release --target x86_64-unknown-linux-gnu | ||
cargo build --release --target aarch64-unknown-linux-gnu | ||
|
||
- name: Upload Linux artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux-binaries | ||
path: modules/c-wrapper/target/*/release/ | ||
|
||
windows: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
runs-on: windows-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: x86_64-pc-windows-gnu,aarch64-pc-windows-gnu | ||
|
||
- name: Build Windows binaries | ||
working-directory: modules/c-wrapper | ||
run: | | ||
cargo build --release --target x86_64-pc-windows-gnu | ||
cargo build --release --target aarch64-pc-windows-gnu | ||
|
||
- name: Upload Windows artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: windows-binaries | ||
path: modules/c-wrapper/target/*/release/ |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Run Core Unit Tests | ||
run: cd modules/c-wrapper/scripts && sh build-docker.sh |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
This is passing the sklearn unit tests and is now updated to the
V 2
version ofort
. There is also an optional build for GPU but this will have to be built inside a special Docker image with access to the Nvidia GPU. The dynamic C lib compilation and support is now available for the new python client. This dynamic C lib approach also enables us to build clients in other languages such as JavaScript.