-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: extract rust packages into independent library (#650)
* remove rust related files * use npm libraries * Update native.ts * remove redundant files * use npm package * fix android building * fix unit test * Update actions.yml
- Loading branch information
1 parent
90f8fbb
commit af4eacd
Showing
36 changed files
with
155 additions
and
4,142 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: E2E & Rust Unit | ||
name: E2E Test | ||
|
||
on: | ||
pull_request: | ||
|
@@ -18,40 +18,6 @@ jobs: | |
- name: Checkout submodules | ||
shell: bash | ||
run: git submodule update --init --recursive | ||
- name: Install 1.41.1 toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: 1.41.1 | ||
profile: minimal | ||
override: true | ||
- name: Add target x86_64-apple-ios | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: 1.41.1 | ||
target: x86_64-apple-ios | ||
- name: Cache cargo registry | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Cache cargo index | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Cache cargo build | ||
uses: actions/[email protected] | ||
with: | ||
path: target | ||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Cache sccache MacOS | ||
uses: actions/[email protected] | ||
with: | ||
path: "/Users/runner/Library/Caches/Mozilla.sccache" | ||
key: ${{ runner.os }}-sccache-build-tests-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Install sccache for MacOS | ||
shell: pwsh | ||
run: pwsh scripts/actions/install-sccache.ps1 ${{ runner.os}} | ||
- name: Install NodeJS | ||
uses: actions/setup-node@v1 | ||
with: | ||
|
@@ -92,16 +58,6 @@ jobs: | |
yarn | ||
- name: Build CocoaPods | ||
run: cd ios && pod install && cd .. | ||
- name: Build targets | ||
run: | | ||
cd rust/signer | ||
cargo build --target x86_64-apple-ios --release --no-default-features | ||
lipo -create -output libsigner.a ./target/x86_64-apple-ios/release/libsigner.a | ||
- name: Rust Unit Test | ||
run: yarn test-rust | ||
- name: Stop sccache | ||
if: always() | ||
run: sccache --stop-server | ||
- name: Detox biuld | ||
run: yarn build-e2e:ci | ||
- name: Detox test | ||
|
280 changes: 0 additions & 280 deletions
280
android/app/src/main/java/io/parity/signer/EthkeyBridge.java
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
android/app/src/main/java/io/parity/signer/EthkeyBridgePackage.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.