Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zurcusa committed Jun 10, 2024
1 parent db50e67 commit fe740fb
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions .github/workflows/build_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,39 @@ on:
- '*' # Trigger on push to any tag

jobs:
upload_dynamic_libs:
strategy:
matrix:
platform:
- os: 'macos-latest'
target: 'aarch64-apple-darwin'
artifact: 'darwin-arm64'
lib_name: 'libwasmer_jni.dylib'

- os: 'macos-latest'
target: 'x86_64-apple-darwin'
artifact: 'darwin-amd64'
lib_name: 'libwasmer_jni.dylib'

- os: 'ubuntu-latest'
target: 'x86_64-unknown-linux-gnu'
artifact: 'linux-amd64'
lib_name: 'libwasmer_jni.so'

- os: 'windows-latest'
target: 'x86_64-pc-windows-msvc'
artifact: 'windows-amd64'
lib_name: 'wasmer_jni.dll'
uses: ./.github/workflows/dynamic_libs_reusable.yaml
with:
platform_os: ${{ matrix.platform.os }}
platform_target: ${{ matrix.platform.target }}
platform_artifact: ${{ matrix.platform.artifact }}
platform_lib_name: ${{ matrix.platform.lib_name }}
# upload_dynamic_libs:
# strategy:
# matrix:
# platform:
# - os: 'macos-latest'
# target: 'aarch64-apple-darwin'
# artifact: 'darwin-arm64'
# lib_name: 'libwasmer_jni.dylib'
#
# - os: 'macos-latest'
# target: 'x86_64-apple-darwin'
# artifact: 'darwin-amd64'
# lib_name: 'libwasmer_jni.dylib'
#
# - os: 'ubuntu-latest'
# target: 'x86_64-unknown-linux-gnu'
# artifact: 'linux-amd64'
# lib_name: 'libwasmer_jni.so'
#
# - os: 'windows-latest'
# target: 'x86_64-pc-windows-msvc'
# artifact: 'windows-amd64'
# lib_name: 'wasmer_jni.dll'
# uses: ./.github/workflows/dynamic_libs_reusable.yaml
# with:
# platform_os: ${{ matrix.platform.os }}
# platform_target: ${{ matrix.platform.target }}
# platform_artifact: ${{ matrix.platform.artifact }}
# platform_lib_name: ${{ matrix.platform.lib_name }}

publish_jar:
name: Publish the JARs
runs-on: ubuntu-latest
needs: [upload_dynamic_libs]

steps:
- name: Check out code
Expand Down

0 comments on commit fe740fb

Please sign in to comment.