forked from nymtech/nym
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add nym-connect rust to build (nymtech#1378)
* ci: add nym-connect rust to build * rustfmt * connect: add gitkeep in dist dir * wallet: dont trigger connect on pull_request * github: libayatana-indicator3-dev * github: libayatana-appindicator3-dev
- Loading branch information
Showing
3 changed files
with
59 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Nym Connect (rust) | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'explorer/**' | ||
|
||
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 libayatana-appindicator3-dev | ||
|
||
- 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-connect/Cargo.toml --workspace | ||
|
||
- name: Run all tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --manifest-path nym-connect/Cargo.toml --workspace | ||
|
||
- name: Check formatting | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --manifest-path nym-connect/Cargo.toml --all -- --check | ||
|
||
- uses: actions-rs/clippy-check@v1 | ||
name: Clippy checks | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --manifest-path nym-connect/Cargo.toml --workspace --all-features | ||
|
||
- name: Run clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --manifest-path nym-connect/Cargo.toml --workspace --all-features -- -D warnings |
Empty file.
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