ae56d3685c
* refactor(nc-android): move nc android into mobile/nym-connect rename the android app ID to "nym_connect" * chore(nc-mobile): restore dist directory * fix: typo * chore: restore gitkeep * chore: track Cargo.lock * ci: trigger ts lint workflow on pull request * refactor(nym-connect): new structure move temp mobile version under nym-connect-new/mobile * refactor(nym-connect): new structure move temp desktop version under nym-connect-new/desktop * refactor(nym-connect): new structure rename nym-connect-new to nym-connect * refactor(nym-connect): new structure restore lost .gitkeep * refactor(nym-connect): new structure restore lost .gitkeep * fix(nym-connect-desktop): broken relative paths * fix(nym-connect-mobile): add todo comment about broken deps * ci(nym-connect): fix relative paths * ci(nym-connect): rename workflow
74 lines
2.1 KiB
YAML
74 lines
2.1 KiB
YAML
name: Nym Connect - mobile (Rust)
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "nym-connect/mobile/src-tauri/**"
|
|
- "nym-connect/mobile/src-tauri/Cargo.toml"
|
|
- "!nym-connect/mobile/src-tauri/gen/**"
|
|
- "clients/client-core/**"
|
|
- "clients/socks5/**"
|
|
- "common/**"
|
|
- "gateway/gateway-requests/**"
|
|
- "contracts/vesting/**"
|
|
- "nym-api/nym-api-requests/**"
|
|
pull_request:
|
|
paths:
|
|
- "nym-connect/mobile/src-tauri/**"
|
|
- "nym-connect/mobile/src-tauri/Cargo.toml"
|
|
- "!nym-connect/mobile/src-tauri/gen/**"
|
|
- "clients/client-core/**"
|
|
- "clients/socks5/**"
|
|
- "common/**"
|
|
- "gateway/gateway-requests/**"
|
|
- "contracts/vesting/**"
|
|
- "nym-api/nym-api-requests/**"
|
|
|
|
jobs:
|
|
build:
|
|
#runs-on: [self-hosted, custom-linux]
|
|
runs-on: ubuntu-22.04
|
|
#env:
|
|
#RUSTC_WRAPPER: /home/ubuntu/.cargo/bin/sccache
|
|
#defaults:
|
|
#run:
|
|
#working-directory: nym-connect/mobile/src-tauri/
|
|
steps:
|
|
- name: Install Dependencies (Linux)
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get -y install \
|
|
libwebkit2gtk-4.1-dev \
|
|
build-essential \
|
|
curl \
|
|
wget \
|
|
libssl-dev \
|
|
libgtk-3-dev \
|
|
squashfs-tools \
|
|
libayatana-appindicator3-dev \
|
|
librsvg2-dev \
|
|
libsoup-3.0-dev \
|
|
libjavascriptcoregtk-4.1-dev
|
|
#continue-on-error: true
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Rust toolchain
|
|
uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: stable
|
|
components: clippy, rustfmt
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --manifest-path nym-connect/mobile/src-tauri/Cargo.toml -- --check
|
|
|
|
- name: Build all binaries
|
|
run: cargo build --manifest-path nym-connect/mobile/src-tauri/Cargo.toml
|
|
|
|
- name: Run all tests
|
|
run: cargo test --manifest-path nym-connect/mobile/src-tauri/Cargo.toml
|
|
|
|
- name: Clippy
|
|
run: cargo clippy --manifest-path nym-connect/mobile/src-tauri/Cargo.toml --all-targets -- -D warnings
|