ad81c6d27e
* Move all workflows on ubuntu-20 to ubuntu-22 * Add missing -y for installing rsync in ci-docs * Install rsync with --yes * Switch two jobs to github hosted free tier runners
70 lines
2.0 KiB
YAML
70 lines
2.0 KiB
YAML
name: ci-nym-wallet-rust
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'nym-wallet/**'
|
|
- 'common/**'
|
|
- 'contracts/vesting/**'
|
|
- 'nym-api/nym-api-requests/**'
|
|
- '.github/workflows/ci-nym-wallet-rust.yml'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: arc-ubuntu-22.04
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
RUSTUP_PERMIT_COPY_RENAME: 1
|
|
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@v4
|
|
|
|
- name: Install rust toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
override: true
|
|
components: rustfmt, clippy
|
|
|
|
- name: Set debug to false
|
|
working-directory: nym-wallet
|
|
run: |
|
|
sed -i.bak '1s/^/\[profile.dev\]\ndebug = false\n\n/' Cargo.toml
|
|
git diff
|
|
|
|
- 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 --all-targets -- -D warnings
|