Skip to content

Commit

Permalink
changed release action
Browse files Browse the repository at this point in the history
Signed-off-by: Georgi Georgiev <georgi.getz@outlook.com>
  • Loading branch information
georg-getz committed Jun 3, 2024
1 parent 2281d8e commit dceeb6a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/dynamic_libs.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
name: Dynamic libs

on: [push]
on:
push:
tags:
- '**'

jobs:
publish_dlibs:
name: Publish the dynamic libraries
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:
Expand All @@ -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 }}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: target/release/${{ matrix.platform.libname }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dceeb6a

Please sign in to comment.