Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dependabot, CI and use oslog from crates.io. #2

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[target.aarch64-apple-ios-sim]
runner = "cargo dinghy -p auto-ios-aarch64-sim runner"

[target.x86_64-apple-ios]
runner = "cargo dinghy -p auto-ios-x86_64 runner"
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"

# Maintain dependencies for Cargo
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
fmt:
name: Check simple example
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
target: x86_64-apple-ios
- uses: taiki-e/install-action@v2
with:
tool: [email protected]
- name: boot iOS simulator
run: |
xcrun simctl boot $(xcrun simctl list devices 'iOS' --json | jq '.devices | with_entries( select(.key|contains("iOS"))) | .[] | [ .[].name ] | map( select(contains("iPhone")) ) | sort | .[0] ' | jq -r)
- name: run accelerometer example
run: cargo run --example accelerometer --target x86_64-apple-ios
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ block = "0.1.6"
bindgen = { version = "0.69.1", default-features = true}

[dev-dependencies]
oslog = { git = "https://github.com/steven-joruk/oslog.git" }
oslog = "0.2.0"
log = "0.4.20"

#[build]
Expand All @@ -42,5 +42,3 @@ log = "0.4.20"
objc = "0.2.7"
block = "0.1.6"

[patch.crates-io]
#bindgen = { git = "https://github.com/simlay/rust-bindgen.git", branch = "objc-category-inheritance" }