Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Only compile svm-runtime-ffi in CI (#354)
Browse files Browse the repository at this point in the history
* Only compile svm-runtime-ffi in CI

* Use Cranelift

* Fix so name

* Remove profile

* Fix cargo build invocation
  • Loading branch information
neysofu authored Aug 24, 2021
1 parent b663daf commit fb29754
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ jobs:
- name: Cargo Build
uses: actions-rs/cargo@v1
with:
profile: minimal
toolchain: nightly
command: build
args: --${{ matrix.profile }}
args: --${{ matrix.profile }} --package svm-runtime-ffi --features=default-cranelift,default-memory --no-default-features
- name: Prepare Artifact (General)
run: |
set -e
Expand All @@ -83,17 +82,17 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
set -e
mv target/${{ matrix.profile }}/libsvm.so bins/svm.so
mv target/${{ matrix.profile }}/libsvm_runtime_ffi.so bins/svm.so
- name: Prepare Artifact (macOS)
if: matrix.os == 'macos-latest'
run: |
set -e
mv target/${{ matrix.profile }}/libsvm.dylib bins/svm.dylib
mv target/${{ matrix.profile }}/libsvm_runtime_ffi.dylib bins/svm.dylib
- name: Prepare Artifact (Windows)
if: matrix.os == 'windows-latest'
run: |
set -e
mv target/${{ matrix.profile }}/svm.dll bins/svm.dll
mv target/${{ matrix.profile }}/svm_runtime_ffi.dll bins/svm.dll
- name: Upload Artifacts
uses: actions/upload-artifact@master
with:
Expand Down

0 comments on commit fb29754

Please sign in to comment.