Skip to content

Commit

Permalink
refactor: extract rust packages into independent library (#650)
Browse files Browse the repository at this point in the history
* 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
hanwencheng authored Jul 3, 2020
1 parent 90f8fbb commit af4eacd
Show file tree
Hide file tree
Showing 36 changed files with 155 additions and 4,142 deletions.
46 changes: 1 addition & 45 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: E2E & Rust Unit
name: E2E Test

on:
pull_request:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down
280 changes: 0 additions & 280 deletions android/app/src/main/java/io/parity/signer/EthkeyBridge.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit af4eacd

Please sign in to comment.