Skip to content

Commit

Permalink
Revert panic abort (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubuid authored Oct 31, 2024
1 parent 7b54814 commit 0cd452f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-kotlin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
target: ${{ matrix.target }}
override: true
components: rust-src
Expand All @@ -53,12 +53,12 @@ jobs:
- name: Build Rust library
run: |
RUSTFLAGS="-Zlocation-detail=none -Zfmt-debug=none" cargo +nightly ndk -t ${{ matrix.target }} build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --release --features=uniffi/cli
cargo ndk -t ${{ matrix.target }} build --release --features=uniffi/cli
- name: Generate Kotlin bindings (once)
if: ${{ matrix.target == 'aarch64-linux-android' }}
run: |
cargo +nightly run --features=uniffi/cli --bin uniffi-bindgen generate --library target/${{ matrix.target }}/release/libuniffi_yttrium.so --language kotlin --out-dir yttrium/kotlin-bindings
cargo run --features=uniffi/cli --bin uniffi-bindgen generate --library target/${{ matrix.target }}/release/libuniffi_yttrium.so --language kotlin --out-dir yttrium/kotlin-bindings
- name: Prepare artifacts
run: |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ log = "0.4.20"
opt-level = 'z'
lto = true
codegen-units = 1
panic = "abort"
# panic = "abort"
# strip = true - it removes kotlin-bindings


Expand Down

0 comments on commit 0cd452f

Please sign in to comment.