-
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.
This commit does: - Downgrade to uniffi 0.25.0 because of Go bindings - Fix compile error. upgrade macos to 10_15 - fix Swift build path for RustFramework - Add cdylib type for [lib] so that GoLang can build bindings from - proc_macros - Generate Go Bindings - - changes `ParticipantIdentifier` to be represented as a hex - string instead of bytes, because GoLang can use Bytes as a key - for maps [see](NordSecurity/uniffi-bindgen-go#52) - Go module + tests - Add GoLang to README and build scripts - Github action to build and test bindings - Build and test swift package locally - Fix target replacement - remove pipefail because github action does not like it - fix swift.yml - fix build go bindings script - fix go bindings generation
- Loading branch information
Showing
20 changed files
with
3,113 additions
and
227 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Go Build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get directory | ||
run: ls | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Set up cargo | ||
run: rustup update stable && rustup default stable | ||
|
||
- name: Install uniffi-bindgen-go | ||
run: cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag v0.2.1+v0.25.0 | ||
|
||
- name: Build Rust library | ||
run: cargo build | ||
|
||
- name: Generate Go Bindings | ||
run: uniffi-bindgen-go --library './target/debug/libfrost_uniffi_sdk.so' --out-dir . | ||
|
||
- name: Get dependencies | ||
run: | | ||
go mod tidy | ||
- name: Test Bindings | ||
run: /bin/bash Scripts/test_bindings.sh |
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
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
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
Oops, something went wrong.