Skip to content

Commit

Permalink
Create kvlib.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samyycX authored Dec 1, 2024
1 parent 2d3d6f9 commit 5438703
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/kvlib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
workflow_dispatch:

jobs:
build_linux:
runs-on: ubuntu-20.04
steps:
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build kvlib
working-directory: ./kvlib
run: xmake build -y linux
- name: Upload kvlib
uses: actions/upload-artifact@v4
with:
name: kvlib_linux
path: kvlib/build/linux/x86_64/release/kvlib.so
build_windows:
runs-on: windows-latest
steps:
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build kvlib
working-directory: ./kvlib
run: xmake build -y windows
- name: Upload kvlib
uses: actions/upload-artifact@v4
with:
name: kvlib_windows
path: kvlib/build/windows/x64/release/kvlib.dll

0 comments on commit 5438703

Please sign in to comment.