Skip to content

Commit

Permalink
Merge pull request #4 from shimat/libsvm-linux
Browse files Browse the repository at this point in the history
Add workflow to build libsvm.so for Linux
  • Loading branch information
shimat authored Jun 3, 2024
2 parents 443e92b + 140a95e commit 362a5a1
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/libsvm-linux.yml
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

0 comments on commit 362a5a1

Please sign in to comment.