Skip to content

Commit

Permalink
add build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBeastLT committed Jul 27, 2022
1 parent fc20ef1 commit 2dddeec
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set default rust toolchain
run: rustup default 1.61.0
- name: Install rustfmt
run: rustup component add rustfmt
- name: Install clippy
run: rustup component add clippy
- name: Lint code format
run: cargo fmt --all -- --check
- name: Lint code
run: cargo clippy --all -- -D warnings
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ jobs:
run: rustup target add i686-linux-android
- name: Add x86_64 target
run: rustup target add x86_64-linux-android
- name: Build aar
run: ./gradlew assembleRelease && ./gradlew assembleRelease
- name: Lint code format
run: cargo fmt --all -- --check
# TODO: fix clippy
# - name: Lint code
# run: cargo clippy --all -- -D warnings
- name: Lint code
run: cargo clippy --all -- -D warnings
- name: Build aar
run: ./gradlew assembleRelease && ./gradlew assembleRelease
- name: Upload build artifacts
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit 2dddeec

Please sign in to comment.