Skip to content

Commit

Permalink
changed all the yamls to activate on release to test everything together
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 6277135 commit 96fa7fe
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 21 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/dynamic_libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,42 @@ jobs:
strategy:
matrix:
platform:
- os_name: macos-arm
- os_name: macos-aarch64
os: macos-latest
target: aarch64-apple-darwin
lib_name: libwasmer_jni.dylib
zip_name: macos-arm.zip
zip_name: macos-aarch64.zip

- os_name: macos-x86_64
os: macos-latest
target: x86_64-apple-darwin
lib_name: libwasmer_jni.dylib
zip_name: macos-x86_64.zip

- os_name: linux-x86_64
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
lib_name: libwasmer_jni.so
zip_name: linux-x86_64.zip

- os_name: linux-aarch64
os: ubuntu-latest
target: aarch64-unknown-linux-gnu
lib_name: libwasmer_jni.so
zip_name: linux-aarch64.zip

- os_name: linux-i686
os: ubuntu-latest
target: i686-unknown-linux-gnu
lib_name: libwasmer_jni.so
zip_name: linux-i686.zip

- os_name: windows
os: windows-latest
target: x86_64-pc-windows-msvc
lib_name: libwasmer_jni.dll
zip_name: windows.zip

- os_name: macos-x86_64
os: macos-latest
target: x86_64-apple-darwin
lib_name: libwasmer_jni.dylib
zip_name: macos-x86_64.zip

runs-on: ${{ matrix.platform.os }}
steps:
- name: Check out code
Expand All @@ -55,7 +67,7 @@ jobs:
cargo build --release --target=${{ matrix.platform.target }}
ls target/release/
- name: Archive Release
- name: Archive dynamic lib
uses: thedoctor0/zip-release@0.7.5
with:
type: 'zip'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/mac_release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release

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

jobs:
publish_jar:
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Release

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

jobs:
publish_jar:
name: Publish the JARs

strategy:
matrix:
# The job runs on 3 different OS.
os: [ubuntu-latest, macos-latest, windows-latest]
# The job runs on 2 different OS.
os: [ubuntu-latest, windows-latest]
# The job runs on different Java versions (LTS).
java: [21]
# As soon as one job fails in the matrix, all the other
Expand Down Expand Up @@ -46,13 +49,6 @@ jobs:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-bin-${{ hashFiles('**/Cargo.lock') }}

- name: Create dynamic libs
id: dylibs
shell: bash
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo build
- name: Cache Cargo build
uses: actions/cache@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
# The job runs on 3 different OS.
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-13, windows-latest]
# The job runs on different Java versions (LTS).
java: [21]
# As soon as one job fails in the matrix, all the other
Expand Down

0 comments on commit 96fa7fe

Please sign in to comment.