Skip to content

Feature/vpn 4192 fix domain fronting #3162

Feature/vpn 4192 fix domain fronting

Feature/vpn 4192 fix domain fronting #3162

name: ci-nym-vpn-core-ios
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "nym-vpn-core/crates/**"
- "nym-vpn-core/Cargo.toml"
- ".github/workflows/ci-nym-vpn-core-ios.yml"
workflow_dispatch:
env:
IPHONEOS_DEPLOYMENT_TARGET: 16.0
CARGO_TERM_COLOR: always
AGENT_ISSELFHOSTED: 1 # https://github.com/actions/setup-go/issues/432
jobs:
build-wireguard-go-ios:
uses: ./.github/workflows/build-wireguard-go-ios.yml
build:
if: github.actor != 'dependabot[bot]'
runs-on: custom-macos-15
needs: [build-wireguard-go-ios]
timeout-minutes: 30
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ vars.REQUIRED_RUSTC_VERSION }}
components: rustfmt, clippy
targets: aarch64-apple-ios
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "21.12" # 3.21.12: the version on ubuntu 24.04. Don't change this!
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache Cargo build
uses: actions/cache@v4
with:
path: nym-vpn-core/target/
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('nym-vpn-core/**/*.rs') }}
restore-keys: |
${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}-
${{ runner.os }}-cargo-build-
- name: Download artifacts
uses: actions/download-artifact@v5
with:
name: wireguard-go_ios_universal
path: build/lib
- name: rustfmt check
working-directory: nym-vpn-core
run: |
cargo fmt --check --all
- name: Clippy
working-directory: nym-vpn-core
run: |
cargo clippy --target aarch64-apple-ios -p nym-vpn-lib-uniffi --locked -- -Dwarnings
- name: Build
working-directory: nym-vpn-core
run: |
cargo build --verbose --target aarch64-apple-ios -p nym-vpn-lib-uniffi --locked
- name: Generate uniffi
working-directory: nym-vpn-core
run: |
cargo run -p uniffi-bindgen generate \
--library target/aarch64-apple-ios/debug/libnym_vpn_lib_uniffi.a \
--config crates/nym-vpn-lib-uniffi/uniffi.toml \
--language swift --out-dir build -n