Skip to content

Commit

Permalink
Merge pull request #2 from simlay/ci-dependabot-os-log-version
Browse files Browse the repository at this point in the history
Added dependabot, CI and use oslog from crates.io.
  • Loading branch information
jpedrick authored Jan 11, 2024
2 parents 02d6642 + 50c6afc commit 48e1d20
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
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" }

0 comments on commit 48e1d20

Please sign in to comment.