Skip to content

Commit 2ca9d12

Browse files
psanfordclaude
andcommitted
Add GitHub Actions workflow for Android build and tests
Uses Nix flake to set up the development environment, then runs unit tests and builds the debug APK. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c32ee94 commit 2ca9d12

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/android.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Android
2+
on: [push, pull_request]
3+
jobs:
4+
5+
build:
6+
name: Build/Test
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 30
9+
10+
steps:
11+
- name: Check out code
12+
uses: actions/checkout@v4
13+
14+
- name: Install Nix
15+
uses: cachix/install-nix-action@ed706ab2cdb9d2f5533fd430f2c531e7340ed650 # v31
16+
17+
- name: Setup Nix devShell
18+
uses: nicknovitski/nix-develop@9be7cfb4b10451d3390a75dc18ad0465bed4932a # v1
19+
20+
- name: Initialize gomobile
21+
run: make init
22+
23+
- name: Run unit tests
24+
working-directory: android
25+
run: ./gradlew testDebugUnitTest
26+
27+
- name: Build debug APK
28+
run: make debug

0 commit comments

Comments
 (0)