diff --git a/.github/workflows/cross_compile.yml b/.github/workflows/cross_compile.yml index c91668f..d686f6e 100644 --- a/.github/workflows/cross_compile.yml +++ b/.github/workflows/cross_compile.yml @@ -29,3 +29,24 @@ jobs: use-cross: true command: build args: --target=${{ matrix.target }} --examples + + ios: + name: iOS Build + runs-on: macos-latest + strategy: + matrix: + target: + - aarch64-apple-ios + - x86_64-apple-ios + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: ${{ matrix.target }} + override: true + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: build + args: --target=${{ matrix.target }} --examples diff --git a/Cargo.toml b/Cargo.toml index 59b35e6..d7a27e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,15 +17,16 @@ get_if_addrs = '0.5.3' version = '0.3.12' features = ['reuseport'] -[target."cfg(windows)".dependencies.winapi] +[target.'cfg(windows)'.dependencies.winapi] version = '0.3.9' features = ['mswsock'] -[target."cfg(not(windows))".dependencies.nix] -# Needs https://github.com/nix-rust/nix/pull/1222 which is unreleased as of today +[target.'cfg(not(windows))'.dependencies.nix] +# Needs https://github.com/nix-rust/nix/pull/1265 which is unreleased as of today # version = '0.18.0' -git = "https://github.com/nix-rust/nix" +git = 'https://github.com/bltavares/nix' +branch = 'sendmsg-pktinfo-android' -[target."cfg(not(windows))".dependencies.libc] +[target.'cfg(not(windows))'.dependencies.libc] # Needs to be the same as the version used by nix -git = "https://github.com/rust-lang/libc" \ No newline at end of file +git = 'https://github.com/rust-lang/libc' \ No newline at end of file