Skip to content

Commit

Permalink
dummy aar
Browse files Browse the repository at this point in the history
  • Loading branch information
nklhtv committed Jun 29, 2022
1 parent 5e4c940 commit 8b3497f
Showing 1 changed file with 32 additions and 28 deletions.
60 changes: 32 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,44 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "adopt"
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Setup Android NDK
run: yes | sdkmanager "ndk;21.0.6113669" >/dev/null
- 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: Add armv7 target
run: rustup target add armv7-linux-androideabi
- name: Add aarch64 target
run: rustup target add aarch64-linux-android
- name: Add i686 target
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
- name: Lint code format
run: cargo fmt --all -- --check
# - name: Setup Java
# uses: actions/setup-java@v3
# with:
# java-version: "11"
# distribution: "adopt"
# - name: Setup Android SDK
# uses: android-actions/setup-android@v2
# - name: Setup Android NDK
# run: yes | sdkmanager "ndk;21.0.6113669" >/dev/null
# - 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: Add armv7 target
# run: rustup target add armv7-linux-androideabi
# - name: Add aarch64 target
# run: rustup target add aarch64-linux-android
# - name: Add i686 target
# 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
# - name: Lint code format
# run: cargo fmt --all -- --check
# TODO: fix clippy
# - name: Lint code
# run: cargo clippy --all -- -D warnings
- name: mkdir
run: mkdir -p ./build/outputs/aar/
- name: echo
run: echo "aar" > ./build/outputs/aar/core-kotlin-release.aar
- name: Upload build artifacts
uses: svenstaro/upload-release-action@v2
with:
file: ./build/outputs/aar/core-kotlin-release.aar
file: build/outputs/aar/core-kotlin-release.aar
asset_name: core-kotlin.aar
tag: ${{ github.ref }}
overwrite: true
Expand Down

0 comments on commit 8b3497f

Please sign in to comment.