Skip to content

Commit

Permalink
Merge pull request project-chip#130 from lukgni/chip-tool-binaries
Browse files Browse the repository at this point in the history
HACK: Add artifacts creation to android github workflow.
  • Loading branch information
pan- authored Mar 24, 2021
2 parents a9c783d + 8145399 commit e6ed939
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
image: connectedhomeip/chip-build-android:latest
volumes:
- "/tmp/log_output:/tmp/test_logs"
- "/tmp/output_binaries:/tmp/output_binaries"

steps:
- name: Checkout
Expand All @@ -53,3 +54,27 @@ jobs:
yes | "$ANDROID_HOME"/tools/bin/sdkmanager --licenses
cd src/android/CHIPTool
./gradlew build
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/[email protected]
with:
cond: ${{ github.event.pull_request.number == '' }}
if_true: "${{ github.sha }}"
if_false: "pull-${{ github.event.pull_request.number }}"
- name: Copy aside build products
run: |
mkdir -p /tmp/output_binaries/
cp src/android/CHIPTool/app/build/outputs/apk/debug/app-debug.apk /tmp/output_binaries/
cp src/android/CHIPTool/app/build/outputs/apk/release/app-release-unsigned.apk /tmp/output_binaries/app-release.apk
- name: Uploading Debug binary
uses: actions/upload-artifact@v1
with:
name:
chiptool-debug-${{ env.BUILD_TYPE }}-${{ steps.outsuffix.outputs.value }}.apk
path: /tmp/output_binaries/app-debug.apk
- name: Uploading Release binary
uses: actions/upload-artifact@v1
with:
name:
chiptool-release-${{ env.BUILD_TYPE }}-${{ steps.outsuffix.outputs.value }}.apk
path: /tmp/output_binaries/app-release.apk

0 comments on commit e6ed939

Please sign in to comment.