Skip to content

Commit 8b17243

Browse files
committed
Merge remote-tracking branch 'origin/fix-mullvad-ios-build'
2 parents 2172b85 + c147dbb commit 8b17243

File tree

2 files changed

+59
-2
lines changed

2 files changed

+59
-2
lines changed

.github/workflows/ios-rust-ffi.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
name: iOS - Build and test Rust FFI (mullvad-ios)
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/clippy.yml
7+
- clippy.toml
8+
- '**/*.rs'
9+
workflow_dispatch:
10+
jobs:
11+
build-ios:
12+
runs-on: macos-latest
13+
strategy:
14+
matrix:
15+
target: [aarch64-apple-ios, aarch64-apple-ios-sim]
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
20+
- name: Install Rust
21+
uses: actions-rs/toolchain@v1.0.6
22+
with:
23+
toolchain: stable
24+
target: ${{ matrix.target }}
25+
26+
- name: Build and test crates
27+
shell: bash
28+
env:
29+
RUSTFLAGS: --deny warnings
30+
run: |
31+
source env.sh
32+
time cargo build --locked --verbose --lib -p mullvad-ios
33+
time cargo test --locked --verbose --lib -p mullvad-ios
34+
35+
clippy-check-ios:
36+
runs-on: macos-latest
37+
strategy:
38+
matrix:
39+
target: [aarch64-apple-ios, aarch64-apple-ios-sim]
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v2
43+
44+
- name: Install Rust
45+
uses: actions-rs/toolchain@v1.0.6
46+
with:
47+
toolchain: stable
48+
target: ${{ matrix.target }}
49+
50+
- name: Clippy check
51+
shell: bash
52+
env:
53+
RUSTFLAGS: --deny warnings
54+
run: |
55+
source env.sh
56+
time cargo clippy --locked --all-targets --no-default-features -p mullvad-ios
57+
time cargo clippy --locked --all-targets --all-features -p mullvad-ios

mullvad-ios/src/tunnel_obfuscator_proxy/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{io, net::SocketAddr};
22
use tokio::task::JoinHandle;
3-
use tunnel_obfuscation::{create_obfuscator, Settings as ObfuscationSettings, Udp2TcpSettings};
3+
use tunnel_obfuscation::{create_obfuscator, udp2tcp::Settings, Settings as ObfuscationSettings};
44

55
mod ffi;
66

@@ -12,7 +12,7 @@ pub struct TunnelObfuscatorRuntime {
1212

1313
impl TunnelObfuscatorRuntime {
1414
pub fn new(peer: SocketAddr) -> io::Result<Self> {
15-
let settings = ObfuscationSettings::Udp2Tcp(Udp2TcpSettings { peer });
15+
let settings = ObfuscationSettings::Udp2Tcp(Settings { peer });
1616

1717
Ok(Self { settings })
1818
}

0 commit comments

Comments
 (0)