From fb29754a124b49978a17a0cc490d7c6c5244b20e Mon Sep 17 00:00:00 2001 From: Filippo Costa Date: Tue, 24 Aug 2021 16:43:18 +0200 Subject: [PATCH] Only compile svm-runtime-ffi in CI (#354) * Only compile svm-runtime-ffi in CI * Use Cranelift * Fix so name * Remove profile * Fix cargo build invocation --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 274c79055..dbbf9681f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: