forked from TBD54566975/tbdex-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue TBD54566975#94: Add MacOS x86_64 Build
- Loading branch information
1 parent
95c269f
commit d108d36
Showing
1 changed file
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,7 @@ jobs: | |
test-and-build: | ||
strategy: | ||
matrix: | ||
#os: [ ubuntu-latest, macos-latest ] # TODO add back windows-latest https://github.com/TBD54566975/tbdex-rs/issues/44 | ||
os: [ macos-latest ] # TODO add back windows-latest https://github.com/TBD54566975/tbdex-rs/issues/44 | ||
os: [ macos-12, macos-latest ] # TODO add back windows-latest https://github.com/TBD54566975/tbdex-rs/issues/44 | ||
rust: [ stable ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -46,13 +45,22 @@ jobs: | |
with: | ||
name: tbdex.kt | ||
path: target/bindgen-kotlin/tbdex/sdk/rust/tbdex.kt | ||
- name: Debug Logging | ||
run: | | ||
ls -laR target | ||
#TODO We need one of these for every environment built | ||
- name: Upload Native Library | ||
- name: Upload Native MacOS Darwin Library | ||
uses: actions/[email protected] | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
with: | ||
name: libtbdex_uniffi_aarch64_apple_darwin.dylib | ||
path: target/aarch64-apple-darwin/release/libtbdex_uniffi.dylib | ||
- name: Upload Native MacOS x86_64 Library | ||
uses: actions/[email protected] | ||
if: ${{ matrix.os == 'macos-12' }} | ||
with: | ||
name: libtbdex_uniffi_x86_64_apple_darwin.dylib | ||
path: target/libtbdex_uniffi_x86_64_apple_darwin.dylib.dylib | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
|
@@ -87,15 +95,24 @@ jobs: | |
name: tbdex.kt | ||
path: bound/kt/src/main/kotlin/tbdex/sdk/rust/UniFFI.kt | ||
## Looking forward we need to get all libs here, do this one per matrix run | ||
- name: Download MacOS Native Library | ||
- name: Download MacOS Darwin Native Library | ||
uses: actions/[email protected] | ||
with: | ||
name: libtbdex_uniffi_aarch64_apple_darwin.dylib | ||
path: bound/kt/src/main/resources/ | ||
- name: Rename MacOS Native Library | ||
- name: Rename MacOS Darwin Native Library | ||
run: | | ||
cd bound/kt/src/main/resources | ||
mv libtbdex_uniffi.dylib libtbdex_uniffi_aarch64_apple_darwin.dylib | ||
- name: Download MacOS x86_64 Native Library | ||
uses: actions/[email protected] | ||
with: | ||
name: libtbdex_uniffi_x86_64_apple_darwin.dylib | ||
path: bound/kt/src/main/resources/ | ||
- name: Rename MacOS x86_64 Native Library | ||
run: | | ||
cd bound/kt/src/main/resources | ||
mv libtbdex_uniffi.dylib libtbdex_uniffi_x86_64_apple_darwin.dylib | ||
- name: Build and Test Kotlin Project | ||
run: | | ||
mkdir -p test-results | ||
|