-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from getlipa/develop
Release v0.1.0
- Loading branch information
Showing
20 changed files
with
2,736 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.