-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Tidy up peer deps conflicts 2. Remove unused dependencies 3. Create a CI pipeline to test building for Android closes: #18 Signed-off-by: Rifa Achrinza <[email protected]>
- Loading branch information
Showing
24 changed files
with
10,124 additions
and
4,352 deletions.
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,59 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: '0 13 * * 6' # At 13:00 on Saturday | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
test: | ||
name: Android | ||
runs-on: ubuntu-latest | ||
permissions: {} | ||
|
||
steps: | ||
- name: Harden runner | ||
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@00854ea68c109d98c75d956347303bf7c45b0277 # v3.2.1 | ||
|
||
- name: Bootstrap dependencies | ||
run: npm ci | ||
|
||
- name: Build android APK | ||
run: | | ||
cd packages/frontend | ||
npm exec \ | ||
--package=shadow-cljs \ | ||
-- \ | ||
shadow-cljs compile app | ||
npm exec \ | ||
--package=expo \ | ||
-- \ | ||
expo prebuild --platform=android | ||
npm exec \ | ||
--package=react-native \ | ||
-- \ | ||
react-native build-android --mode=release |
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 |
---|---|---|
|
@@ -3,8 +3,6 @@ node_modules/ | |
.lsp/ | ||
.expo/ | ||
*~ | ||
packages/frontend/app/ | ||
packages/frontend/assets/* | ||
\#*# | ||
.\#* | ||
.m2 | ||
|
Oops, something went wrong.