-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4967 from nymtech/jon/import-vpn-api
Import nym-vpn-api crates
- Loading branch information
Showing
53 changed files
with
12,847 additions
and
0 deletions.
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,41 @@ | ||
name: ci-build-vpn-api-wasm | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'common/**' | ||
- 'nym-vpn-api/**' | ||
- '.github/workflows/ci-build-vpn-api-wasm.yml' | ||
|
||
jobs: | ||
wasm: | ||
runs-on: arc-ubuntu-22.04 | ||
env: | ||
CARGO_TERM_COLOR: always | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Install wasm-pack | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
||
- name: Install wasm-opt | ||
uses: ./.github/actions/install-wasm-opt | ||
with: | ||
version: '116' | ||
|
||
- name: Install wasm-bindgen-cli | ||
run: cargo install wasm-bindgen-cli | ||
|
||
- name: "Build" | ||
run: make | ||
working-directory: nym-vpn-api/vpn-api-lib-wasm |
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,45 @@ | ||
name: ci-build-vpn-api | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'common/**' | ||
- 'nym-vpn-api/**' | ||
- '.github/workspace/ci-build-vpn-api.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: arc-ubuntu-22.04 | ||
env: | ||
CARGO_TERM_COLOR: always | ||
MANIFEST_PATH: "--manifest-path nym-vpn-api/Cargo.toml" | ||
steps: | ||
- 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: Check formatting | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: ${{ env.MANIFEST_PATH }} --all -- --check | ||
|
||
- name: Build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: ${{ env.MANIFEST_PATH }} --workspace --all-targets | ||
|
||
- name: Clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: ${{ env.MANIFEST_PATH }} --workspace --all-targets -- -D warnings |
Oops, something went wrong.