Skip to content

Commit

Permalink
feat: add support for missing CLI functions through native FFI calls …
Browse files Browse the repository at this point in the history
…to radicle crate

Signed-off-by: jchrist <[email protected]>
  • Loading branch information
JChrist committed Jan 13, 2025
1 parent 1339773 commit e6bdef3
Show file tree
Hide file tree
Showing 46 changed files with 3,703 additions and 594 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,27 @@ jobs:
with:
name: tests-result
path: ${{ github.workspace }}/build/reports/tests
buildNativeLib:
name: BuildNativeLib
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Fetch Sources
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Lint
working-directory: ./jrad
run: |
cargo fmt --all --check
cargo clippy --all --tests
- name: Build
working-directory: ./jrad
run: |
cargo build --release
6 changes: 5 additions & 1 deletion .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ jobs:
- name: Copy logs
if: ${{ failure() }}
working-directory: ${{ github.workspace }}/radicle-jetbrains-plugin
run: mv build/idea-sandbox/system/log/ build/reports
run: |
# make a loop to iterate over the wildcard in the directory, as we don't want to hardcode the ij version
for f in ./build/idea-sandbox/*/log/idea.log; do
cp "$f" ./build/reports/idea.log
done
- name: Save fails report
if: ${{ failure() }}
uses: actions/upload-artifact@v4
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
build
video
/out/
.intellijPlatform/
.intellijPlatform/
*.iml
target/
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ dependencies {
implementation("org.apache.tika:tika-core:${libs.versions.tika.get()}")
implementation("com.automation-remarks:video-recorder-junit5:2.+")
implementation("com.sshtools:maverick-synergy-client:${libs.versions.sshTools.get()}")

// java -> rust
implementation("com.github.jnr:jnr-ffi:2.2.17")
}

checkstyle {
Expand Down
Loading

0 comments on commit e6bdef3

Please sign in to comment.