From dceeb6ab6c811edd7d96ee06bd6f8f0b6562605d Mon Sep 17 00:00:00 2001 From: Georgi Georgiev Date: Tue, 4 Jun 2024 00:32:09 +0300 Subject: [PATCH] changed release action Signed-off-by: Georgi Georgiev --- .github/workflows/dynamic_libs.yaml | 28 +++++++++++++++++----------- Cargo.lock | 2 +- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dynamic_libs.yaml b/.github/workflows/dynamic_libs.yaml index f890bd7..cbec2ac 100644 --- a/.github/workflows/dynamic_libs.yaml +++ b/.github/workflows/dynamic_libs.yaml @@ -1,6 +1,9 @@ name: Dynamic libs -on: [push] +on: + push: + tags: + - '**' jobs: publish_dlibs: @@ -8,21 +11,25 @@ jobs: strategy: matrix: platform: - - os_name: macos + - os_name: macos-arm os: macos-latest target: aarch64-apple-darwin + lib_name: libwasmerjni.dylib - - os_name: Linux-x86_64 + - os_name: linux-x86_64 os: ubuntu-latest target: x86_64-unknown-linux-gnu + lib_name: libwasmerjni.so - - os_name: Windows + - os_name: windows os: windows-latest target: x86_64-pc-windows-msvc + lib_name: libwasmerjni.dll - - os_name: macOS-x86_64 + - os_name: macos-x86_64 os: macos-latest target: x86_64-apple-darwin + lib_name: libwasmerjni.dylib runs-on: ${{ matrix.platform.os }} steps: @@ -40,11 +47,10 @@ jobs: shell: bash run: | export PATH="$HOME/.cargo/bin:$PATH" - cargo build + cargo build --release --target=${{ matrix.platform.target }} ls - - name: Get release info - id: get_release_info - uses: bruceadams/get-release@v1.3.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: target/release/${{ matrix.platform.libname }} diff --git a/Cargo.lock b/Cargo.lock index 0d27064..aca42b1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1157,7 +1157,7 @@ dependencies = [ [[package]] name = "wasmer-jni" -version = "0.3.0" +version = "1.1.0" dependencies = [ "jni", "wasmer",