3e6188ed13
* feat(nym-connect): add android support * fix(nym-connect): android linker issue with sqlite3 get rid of sqlite refs as temporary workaround * fix(nc): fix index.ts (post rebase) * feat(nc-android): wip * hack in config removal of read/write * fix(nc-android): remove more fs read/write calls * wip * chore: remove debug comments * Register gateway * client-core: remove unneeded changes * build: revert crate name change * refactor(socks5-client): add feature mobile * refactor(gateway-client): rename mobile feature * socks5: restore default_root_directory * client-core: further simplifications * get_config_file_location just return error * fix(nc-mobile): fix ui mobile * socks5: minor tweak to default_root_directory * remove unneeded changes * nym-connect build fixes * Use default feature for normal credential storage * rustfmt * rustfmt: nym-connect * restore Cargo.toml * Remove --all-features from workflow * Remove some unused use * Remove two move --all-features from build workflow * Allow unused * Add continue-on-error * another clippy --all-features remove * remove --all-features from clippy nightly * fix(nc-mobile): frontend code errors * feat: restore nc, move mobile under its own dir * fix(nc-android): build * fix(nc-android): lint errors Co-authored-by: Jon Häggblad <jon.haggblad@gmail.com>
68 lines
1.8 KiB
YAML
68 lines
1.8 KiB
YAML
name: Nym Wallet (rust)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'nym-wallet/**'
|
|
- 'common/**'
|
|
- 'contracts/vesting/**'
|
|
- 'nym-api/nym-api-requests/**'
|
|
pull_request:
|
|
paths:
|
|
- 'nym-wallet/**'
|
|
- 'common/**'
|
|
- 'contracts/vesting/**'
|
|
- 'nym-api/nym-api-requests/**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [ self-hosted, custom-linux ]
|
|
env:
|
|
RUSTC_WRAPPER: /home/ubuntu/.cargo/bin/sccache
|
|
steps:
|
|
- name: Install Dependencies (Linux)
|
|
run: sudo apt-get update && sudo apt-get -y install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev squashfs-tools
|
|
continue-on-error: true
|
|
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install rust toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
components: rustfmt, clippy
|
|
|
|
- name: Build all binaries
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: build
|
|
args: --manifest-path nym-wallet/Cargo.toml --workspace
|
|
|
|
- name: Run all tests
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
args: --manifest-path nym-wallet/Cargo.toml --workspace
|
|
|
|
- name: Check formatting
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: fmt
|
|
args: --manifest-path nym-wallet/Cargo.toml --all -- --check
|
|
|
|
- uses: actions-rs/clippy-check@v1
|
|
name: Clippy checks
|
|
continue-on-error: true
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
args: --manifest-path nym-wallet/Cargo.toml --workspace --all-features
|
|
|
|
- name: Run clippy
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: clippy
|
|
args: --manifest-path nym-wallet/Cargo.toml --workspace --all-features -- -D warnings
|