Skip to content

Commit

Permalink
Merge pull request #78 from getlipa/develop
Browse files Browse the repository at this point in the history
Release v0.1.0
  • Loading branch information
danielgranhao authored Feb 7, 2023
2 parents 24f60d7 + 4d15f17 commit 4aaef73
Show file tree
Hide file tree
Showing 20 changed files with 2,736 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
target-branch: develop
74 changes: 74 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build and Test

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

on:
push:
branches:
- main
- develop
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
- name: Build
run: cargo build --verbose
- name: Run unit tests
run: cargo test --verbose
build-ios:
name: Build for iOS targets
runs-on: macos-latest
strategy:
matrix:
target: [ x86_64-apple-ios, aarch64-apple-ios, aarch64-apple-ios-sim ]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
- name: Build target
uses: actions-rs/cargo@v1
with:
use-cross: false
command: build
args: --target ${{ matrix.target }}
build-android:
name: Build for Android targets
runs-on: ubuntu-latest
strategy:
matrix:
target: [ aarch64-linux-android, armv7-linux-androideabi, i686-linux-android ]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
- name: Build target
uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --target ${{ matrix.target }}
65 changes: 65 additions & 0 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Static code analysis

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

on:
push:
branches:
- main
- develop
pull_request:

jobs:
security-audit:
name: Security audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
- name: Install security audit
run: cargo install cargo-audit
- name: Run security audit
run: cargo audit
fmt_check:
name: Check code formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
components: rustfmt
- name: Check code formatting
run: cargo fmt -- --check
clippy_check:
name: Clippy check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: stable
components: clippy
- name: Clippy
run: cargo clippy -- -D warnings
unused_dependencies:
name: Look for unused dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rust-toolchain
uses: actions-rs/[email protected]
with:
toolchain: nightly
override: true
- name: Install unused dependency checker
run: cargo install cargo-udeps --locked
- name: Run unused dependency checker
run: cargo +nightly udeps --all-targets
Loading

0 comments on commit 4aaef73

Please sign in to comment.