Skip to content

Commit

Permalink
Issue TBD54566975#94: Add MacOS x86_64 Build
Browse files Browse the repository at this point in the history
  • Loading branch information
ALRubinger committed Jul 29, 2024
1 parent 95c269f commit d108d36
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/ci-issue-94.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d108d36

Please sign in to comment.