Skip to content

Commit

Permalink
Merge pull request #2 from bltavares/mobile-compile
Browse files Browse the repository at this point in the history
Mobile compile
  • Loading branch information
bltavares authored Jun 30, 2020
2 parents 0232abd + 066a040 commit 2095ec7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cross_compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 7 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
git = 'https://github.com/rust-lang/libc'

0 comments on commit 2095ec7

Please # to comment.