forked from ccerhan/LibSVMsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from shimat/libsvm-linux
Add workflow to build libsvm.so for Linux
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build libsvm for Linux | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout LibSVMsharp | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout vcpkg | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: microsoft/vcpkg | ||
path: vcpkg | ||
|
||
- name: Install vcpkg dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y tar curl zip unzip | ||
- name: Bootstrap | ||
run: ./vcpkg/bootstrap-vcpkg.sh | ||
|
||
- name: Vcpkg install | ||
run: ./vcpkg/vcpkg install libsvm:x64-linux-dynamic | ||
|
||
- name: Vcpkg export | ||
run: | | ||
./vcpkg/vcpkg export libsvm:x64-linux-dynamic --zip --output=libsvm --output-dir=/tmp | ||
ls /tmp | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: libsvm | ||
path: /tmp/libsvm.zip |