Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
4d68560
Satisfy template: rename template to haskell-mobile
Mar 15, 2026
fafce47
Merge pull request #1 from jappeace-sloth/satisfy-template
jappeace Mar 15, 2026
46f6d69
Add Android aarch64 cross-compilation via haskell.nix
Mar 15, 2026
96918ae
Fix Android cross-compilation: use nixpkgs-2305 with LLVM 14
Mar 16, 2026
9a9d485
Add full Android APK pipeline: Haskell FFI → .so → JNI → APK
Mar 16, 2026
d4d4096
Merge pull request #2 from jappeace-sloth/android-cross-compilation
jappeace Mar 16, 2026
36647bd
Add iOS build pipeline: Haskell → static lib → mac2ios patching
Mar 16, 2026
ab64b97
Fix iOS build: use haskell.nix master instead of armv7a branch
Mar 16, 2026
3758b78
Fix iOS: use nixpkgs-2305 to avoid ghc943 bootstrap issue
Mar 16, 2026
12c664c
Replace haskell.nix with nixpkgs GHC for iOS build
Mar 17, 2026
2bd4301
Merge pull request #3 from jappeace-sloth/ios-build-pipeline
jappeace Mar 17, 2026
e479143
Remove haskell.nix, use nixpkgs cross-compilation for Android
Mar 17, 2026
191c601
Fix android build: add explicit GMP and libffi library paths
Mar 17, 2026
32947e7
Use authToken for cachix in android and ios CI jobs
Mar 17, 2026
c07b282
Merge pull request #4 from jappeace-sloth/remove-haskell-nix
jappeace Mar 17, 2026
6e42865
Upload Android APK and iOS library as CI artifacts
Mar 17, 2026
d4cc872
Only build and upload artifacts on master branch
Mar 17, 2026
9e10e2f
Merge pull request #5 from jappeace-sloth/ci-upload-artifacts
jappeace Mar 17, 2026
4d8e5da
Add iOS IPA build to CI, XcodeGen project spec, and rewrite Readme
Mar 17, 2026
36537cd
Merge pull request #6 from jappeace-sloth/ios-ipa-build
jappeace Mar 18, 2026
7ad05e3
draft roadmap
jappeace Mar 18, 2026
a870804
Add lifecycle event callbacks for Android and iOS
Mar 18, 2026
74d206e
Fix lifecycle test race condition
Mar 18, 2026
ca4d992
Refactor: replace global IORef with StablePtr MobileContext
Mar 18, 2026
165637f
Add platform-aware lifecycle logging and update sample app
Mar 18, 2026
80f8347
Change platformLog to accept Text, update demo as lifecycle listener
Mar 19, 2026
2ffdd56
Fix iOS/Android build: add OverloadedStrings pragma to Lifecycle.hs
Mar 19, 2026
ad41dbb
Add Backpack-based app hook for MobileContext
Mar 19, 2026
6b8fc98
Trigger CI re-run (previous run canceled by iOS cache flake)
Mar 19, 2026
f8cd778
Fix nix builds: move hsig out of src, copy sources into build dir
Mar 19, 2026
fe4e2e7
Fix Windows CI: use short builddir for Backpack long paths
Mar 19, 2026
32a67b1
Fix nix mobile builds: create HaskellMobile dir before copying sources
Mar 20, 2026
d726617
Add quote fortune found me
jappeace Mar 21, 2026
f795591
Add Android emulator test for lifecycle callbacks
Mar 23, 2026
dacf72f
Add iOS Simulator lifecycle test
Mar 23, 2026
d9ffdc4
Fix simulator test: resolve nixpkgs from npins for xcodegen
Mar 23, 2026
ce611f6
Fix ios.nix header filename and bundle assets in simulator test
Mar 23, 2026
a30d1e4
Fix simulator build: use classic linker and fix cleanup permissions
Mar 23, 2026
08a8548
Fix simulator xcodebuild: use Release config, disable debug dylib
Mar 23, 2026
f74ce90
Fix simulator linker: use ld-classic binary directly
Mar 23, 2026
9aa7373
Fix linker path: use xcode-select instead of xcrun for ld-classic
Mar 23, 2026
982c795
Bundle xcodegen in derivation, run test without nix-shell
Mar 23, 2026
2255eb0
Link libgmp for integer-gmp symbols in simulator build
Mar 23, 2026
2b3861c
Merge libgmp into static library for self-contained linking
Mar 23, 2026
6f32456
Build static libgmp and merge into iOS static library
Mar 23, 2026
a3f7737
Fix libtool in ios.nix, add CI concurrency cancellation
Mar 23, 2026
cb7a8cb
Add explicit Info.plist generation to xcodegen project
Mar 23, 2026
bb354b1
Fix simulator log capture: add --level info and use composedMessage
Mar 23, 2026
d82643e
Merge pull request #7 from jappeace-sloth/lifecycle-callbacks
jappeace Mar 23, 2026
4e23ef5
Add declarative UI bridge with native rendering via direct FFI
Mar 24, 2026
2587d59
Fix iOS build: add include path for UIBridge.h
Mar 24, 2026
e29d1ec
Add OverloadedStrings pragma to App.hs for standalone GHC builds
Mar 24, 2026
c52d9bd
Add ImportQualifiedPost pragma to Render.hs for nix builds
Mar 24, 2026
edbdcc9
Remove W prefix from Widget constructors, drop smart constructors
Mar 24, 2026
9643d07
Add emulator UI rendering test
Mar 24, 2026
441e854
Fix emulator-ui: set ANDROID_HOME, add debug output, fix sysimg path
Mar 24, 2026
8690122
Add iOS UI bridge + simulator UI rendering test
Mar 24, 2026
5f902d4
Fix iOS logging and UI test assertions
Mar 24, 2026
3c9c139
Fix xcodebuild destination for CI runners
Mar 24, 2026
cfd1fa3
Restrict xcodebuild to arm64 for simulator builds
Mar 24, 2026
39bc614
Remove -destination from xcodebuild, use -sdk + ARCHS instead
Mar 24, 2026
42e38c9
Share nix store cache between related CI jobs
Mar 24, 2026
12ce91d
Fix ios-ui test race: schedule auto-tap after initial render
Mar 25, 2026
234d8ff
Make ios-ui test robust against os_log message loss
Mar 25, 2026
db900dd
Merge pull request #9 from jappeace-sloth/ios-ui-bridge
jappeace Mar 25, 2026
a5ee457
Consolidate CI into nix/ci.nix
Mar 25, 2026
4a6ea59
Simplify CI to two nix jobs: android (ubuntu) and ios (macos)
Mar 25, 2026
0a9a152
Fix flaky iOS simulator tests: use subsystem predicate and retry
Mar 25, 2026
0a9ffe2
Merge pull request #11 from jappeace-sloth/consolidate-ci-nix
jappeace Mar 25, 2026
1103898
Add TextInput widget for text entry support
Mar 27, 2026
e94d86e
Make sub-libraries public for external Backpack consumers
Mar 27, 2026
c09652b
Merge pull request #12 from jappeace-sloth/text-input-widget
jappeace Mar 27, 2026
25c9b30
Replace Backpack with IORef-based app registration
Mar 28, 2026
575f747
Add OverloadedStrings pragma for raw GHC builds
Mar 28, 2026
41f2fba
Fix Android module cycle and iOS lifecycle registration
Mar 29, 2026
5c52a37
Merge pull request #13 from jappeace-sloth/ioref-registration
jappeace Mar 29, 2026
3cd6a05
Consolidate sub-libraries into single library
Mar 29, 2026
e79a4bf
Merge pull request #14 from jappeace-sloth/consolidate-single-library
jappeace Mar 29, 2026
6405b44
Replace haskellInit CPP guard with RTS-based main invocation
Mar 29, 2026
47aa858
Merge pull request #15 from jappeace-sloth/consolidate-single-library
jappeace Mar 30, 2026
0fb42cf
Extract reusable nix builder functions into nix/lib.nix
Mar 30, 2026
b43364b
Make library paths dynamic in mkAndroidLib
Mar 30, 2026
9529911
Exclude debug/profiling library variants from find_lib
Mar 30, 2026
13c960e
Parameterize JNI bridge by Java package name
Mar 31, 2026
e6245a9
Fix flaky UI test: logcat stdio buffering + bounds parsing
Mar 31, 2026
2cd362b
Replace logcat streaming with dump polling (logcat -d)
Mar 31, 2026
f79d8bd
Merge pull request #16 from jappeace-sloth/extract-nix-lib
jappeace Mar 31, 2026
d55644e
Add cross-compilation of Hackage packages for Android builds
Apr 1, 2026
0106412
Enable Hackage libraries (direct-sqlite) in iOS builds
Apr 1, 2026
e128590
Extract inline heredocs to real files in cross-deps and ios-deps
Apr 1, 2026
c985e7f
Unify cross-deps and ios-deps wrapper projects into deps-wrapper
Apr 1, 2026
ddfff65
Merge pull request #18 from jappeace-sloth/cross-deps-hackage
jappeace Apr 1, 2026
e5fb3fb
Add nix-cache.jappie.me as substituter in CI
Apr 5, 2026
ce4ad8a
Remove cachix, use only nix-cache.jappie.me
Apr 5, 2026
3e0e7ce
Merge pull request #19 from jappeace-sloth/add-binary-cache
jappeace Apr 5, 2026
f2b5121
Add ScrollView widget
Apr 5, 2026
fea9bea
Fix incomplete pattern match for ScrollView in test suite
Apr 5, 2026
51ae545
Add ScrollView widget binding tests
Apr 5, 2026
0e00c10
Add ScrollView integration tests (emulator + simulator)
Apr 5, 2026
b5e81ce
Merge pull request #20 from jappeace-sloth/add-scroll-view
jappeace Apr 5, 2026
04e7b08
Add two-button UI tests for Android and iOS
Mar 25, 2026
918fa6f
Fix iOS simulator UI buttons test race condition
Mar 25, 2026
ae209fc
Fix iOS UI buttons test: wait for sequence then verify
Mar 25, 2026
1f7403e
Fix binary cache: replace cachix with nix-cache.jappie.me in new CI jobs
Apr 5, 2026
0dd6fa8
Merge pull request #10 from jappeace-sloth/two-button-ui-test
jappeace Apr 5, 2026
aa565cc
Remove haskellUseScrollDemo FFI and runtime app-switching mechanism
Apr 5, 2026
e539ff3
CI: retrigger
Apr 5, 2026
a6dc8b8
CI: retrigger android test
Apr 5, 2026
af34d3e
Add consumer link test: nix-build with ScrollDemoMain to catch jni_br…
Apr 6, 2026
bc5acf5
TEST: add undefined bloob() symbol to verify consumer-link-test catch…
Apr 6, 2026
14a8373
Add -Wl,--no-undefined to Android shared library link to catch missin…
Apr 6, 2026
75d815d
Revert "TEST: add undefined bloob() symbol to verify consumer-link-te…
Apr 6, 2026
28cc0ac
Merge pull request #23 from jappeace-sloth/remove-use-scroll-demo
jappeace Apr 6, 2026
513837e
Consolidate integration tests to single emulator/simulator sessions
Apr 6, 2026
248e88c
Fix CI: remove runTest, build and run test scripts manually
Apr 6, 2026
2696f27
Fix Phase 2 scroll click detection using log show
Apr 6, 2026
ace0182
Extract test logic into bash scripts under test/android/ and test/ios/
Apr 6, 2026
5903850
Fix iOS scroll test: poll for click event instead of fixed 15s sleep
Apr 6, 2026
a238e61
Simplify CI: collapse each runner to a single nix-build step
Apr 6, 2026
884a2d5
Re-add emulator/simulator run steps after build
Apr 6, 2026
522c02f
Fix iOS scroll test: log Click dispatched from HaskellBridge.onUIEvent
Apr 6, 2026
b1d4a9e
Merge pull request #24 from jappeace-sloth/consolidate-emulator-tests
jappeace Apr 6, 2026
018bb42
Parameterize cross-deps to allow consumer Hackage packages
Apr 6, 2026
586835e
Retrigger CI (emulator test may be flaky)
Apr 6, 2026
fea1b52
Merge pull request #29 from jappeace-sloth/parameterize-cross-deps
jappeace Apr 6, 2026
25796ed
Add retry mechanism to emulator/simulator integration tests
Apr 6, 2026
ff8fe41
Merge pull request #30 from jappeace-sloth/retry-emulator-tests
jappeace Apr 6, 2026
9857ebc
Add i18n support: locale detection and translation infrastructure
Apr 5, 2026
a6cab5c
Fix Nix string escaping for bash variables in deps files
Apr 5, 2026
3a03579
Fix toml-parser sha256 hash in Nix deps files
Apr 5, 2026
270c23d
Fix prettyprinter sha256 hash in Nix deps files
Apr 5, 2026
56150e7
Fix sed patterns for toml-parser build-tool-depends patching
Apr 5, 2026
b909348
Address PR review: Language sum type, remove TOML parsing
Apr 6, 2026
975bd20
Return TranslateFailure from translate instead of Maybe
Apr 6, 2026
a82cc12
Migrate locale integration tests to bash test scripts
Apr 6, 2026
c5db5b6
Retrigger CI (android emulator flake)
Apr 6, 2026
19a9f4b
Remove unused prettyprinter from cross-deps and ios-deps
Apr 6, 2026
2d1d4ef
Merge pull request #21 from jappeace-sloth/i18n-support
jappeace Apr 6, 2026
3e3d589
Add InputType to TextInput for numeric keyboard support
Apr 6, 2026
b987295
Address PR review: use Int32 for inputType, factor TextInput into record
Apr 6, 2026
f878fa0
Merge pull request #31 from jappeace-sloth/add-input-type
jappeace Apr 6, 2026
570080f
Implement numeric properties (font size, padding) via Styled wrapper
Apr 6, 2026
d321a42
Refactor Widget ADT: move font size into text-bearing config records
Apr 6, 2026
29d821c
Merge pull request #32 from jappeace-sloth/styled-widget-numeric-props
jappeace Apr 6, 2026
7a5fc27
Add 32-bit ARM (armeabi-v7a) Android target support
Apr 6, 2026
b8556ba
Add armv7a emulator CI job
Apr 6, 2026
67bef81
Add comments explaining armv7a is for Wear OS watches
Apr 6, 2026
ea24c1a
Use API 30 emulator for armv7a (32-bit ARM translation)
Apr 7, 2026
93516d4
Merge pull request #34 from jappeace-sloth/armv7a-emulator-ci
jappeace Apr 7, 2026
0551cc3
Add watchOS support with SwiftUI-based UI bridge
Apr 7, 2026
2614fb2
Fix: declare haskellOnUITextChange in watchOS bridging header
Apr 7, 2026
f047b09
Fix: set WKApplication to true in watchOS Info.plist
Apr 7, 2026
cf21d52
Add TextAlignment support to widget style system
Apr 7, 2026
02d25d9
Fix: add WKCompanionAppBundleIdentifier to watchOS Info.plist
Apr 7, 2026
b9133a7
Fix: use WKRunsIndependentlyOfCompanionApp for standalone watchOS app
Apr 7, 2026
3ce7a0c
Fix: use WatchKit-compliant bundle ID and separate LOG_SUBSYSTEM for …
Apr 7, 2026
c1f6ef8
Add 20-minute timeout to CI jobs
Apr 7, 2026
174f774
Bump CI timeout to 45 minutes
Apr 7, 2026
072e9fe
Merge pull request #35 from jappeace-sloth/watchos-support
jappeace Apr 7, 2026
537a998
Detect native library load failures and abort CI immediately
Apr 7, 2026
4c1e9bb
Fix Nix interpolation of ${label} in run_with_retry
Apr 7, 2026
8b76a67
Re-trigger CI after cache server restored
Apr 7, 2026
2867d78
Re-trigger CI (cache server fix)
Apr 7, 2026
82acb74
Retry CI: transient nix cache failure on android jobs
Apr 7, 2026
069f188
Merge pull request #36 from jappeace-sloth/add-text-alignment
jappeace Apr 7, 2026
8168755
Add runtime permission management API (Issue #43)
Apr 7, 2026
8b0800d
Fix: link AVFoundation, Contacts, CoreLocation frameworks in iOS project
Apr 7, 2026
e414902
Fix: copy PermissionBridge.h to all app staging directories
Apr 7, 2026
a393800
Fix: correct xcrun simctl privacy argument order
Apr 7, 2026
a6a3f44
Address review: unify globals into AppState, move demo to test suite
Apr 7, 2026
c06bc03
Retry CI: nix cache was rebooted
Apr 7, 2026
488e8d8
Merge pull request #46 from jappeace-sloth/feature/runtime-permission…
jappeace Apr 7, 2026
1152374
Configurable node pool size for Android and iOS UI bridges
Apr 7, 2026
e28b7cc
Fix: shell quoting in mkSimulatorApp Python invocation
Apr 7, 2026
c471e5e
Fix: remove $(inherited) from OTHER_CFLAGS injection
Apr 7, 2026
ea5fc44
Fix: add PermissionBridge.h to watchOS nodepool staging
Apr 7, 2026
d7aab22
Merge pull request #45 from jappeace-sloth/configurable-node-pool
jappeace Apr 7, 2026
2951278
Add default exception handler for FFI entry points
Apr 7, 2026
5ab754b
Address review: remove appErrorState, overwrite maView instead
Apr 7, 2026
9d54adb
Add cross-compilation gaps report documenting why Nix hacks are needed
Apr 7, 2026
881937e
Merge pull request #49 from jappeace-sloth/default-exception-handler
jappeace Apr 7, 2026
bf2a1a3
Merge pull request #50 from jappeace-sloth/cross-compilation-report
jappeace Apr 7, 2026
03e9b62
Eliminate global render context; thread AppContext through FFI
Apr 7, 2026
54aa2af
Merge pull request #48 from jappeace-sloth/eliminate-global-render-co…
jappeace Apr 7, 2026
f509711
Implement iOS TextInput with onChange callback
Apr 7, 2026
85b20b6
Fix regex escaping in textinput.sh assertion
Apr 7, 2026
f9cded4
Merge pull request #51 from jappeace-sloth/ios-textinput-onchange
jappeace Apr 7, 2026
982f57b
Add text color and background color support to all platforms
Apr 7, 2026
19fad62
Make Color typesafe with dedicated Color type
Apr 7, 2026
859d460
Retrigger CI: android job failed due to nix cache infrastructure issue
Apr 7, 2026
862fc0f
Retrigger CI (attempt 3)
Apr 8, 2026
386983d
Merge pull request #53 from jappeace-sloth/colors-and-theming
jappeace Apr 8, 2026
4666671
Extract HaskellMobileActivity base class to eliminate consumer boiler…
Apr 8, 2026
b1b8835
Merge pull request #55 from jappeace-sloth/eliminate-mainactivity-boi…
jappeace Apr 8, 2026
06ded1d
Replace mk-deps.nix with nixpkgs haskellPackages for cross-compilation
Apr 8, 2026
8d7a868
Remove mk-deps.nix and supporting files
Apr 8, 2026
629761e
Merge pull request #56 from jappeace-sloth/nixpkgs-haskell-deps
jappeace Apr 8, 2026
f809057
Exclude test frameworks from transitive dep collection
Apr 8, 2026
3112af0
Merge pull request #58 from jappeace-sloth/fix-test-framework-leakage
jappeace Apr 8, 2026
0e1de3c
Add Image widget support across all platforms (#37)
Apr 8, 2026
bcd872c
Fix watchOS setImageData callback not registered in bridge
Apr 8, 2026
be70765
Address PR #57 review comments
Apr 8, 2026
98ac040
Merge pull request #57 from jappeace-sloth/image-widget-support
jappeace Apr 8, 2026
822c2bf
Add React Native vs Flutter rendering comparison doc
Apr 8, 2026
0779f01
Merge pull request #61 from jappeace-sloth/docs/rendering-comparison
jappeace Apr 8, 2026
11087f6
Add Flutter vs haskell-mobile feature comparison
Apr 8, 2026
1abb035
Merge pull request #63 from jappeace-sloth/docs/flutter-feature-compa…
jappeace Apr 8, 2026
73876c3
Eliminate globalMobileApp — return context from main
Apr 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 83 additions & 35 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,69 +7,117 @@ on:
permissions:
actions: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
nix:
android:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- name: Local cache
uses: actions/cache@v4
with:
path: /nix/store
key: "${{ runner.os }}-nix-cache"
key: "${{ runner.os }}-nix-android-cache"
restore-keys: |
${{ runner.os }}-nix-android-
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
extra-substituters = https://nix-cache.jappie.me
extra-trusted-public-keys = nix-cache.jappie.me:WjkKcvFtHih2i+n7bdsrJ3HuGboJiU2hA2CZbf9I9oc=
- run: nix-build nix/ci.nix
- name: Run combined emulator test (lifecycle + UI + buttons + scroll)
run: nix-build nix/ci.nix -A emulator-all -o result-emulator-all && ./result-emulator-all/bin/test-all
- name: Cancel workflow on failure
if: failure()
continue-on-error: true
run: gh run cancel ${{ github.run_id }}
env:
GH_TOKEN: ${{ github.token }}

- uses: cachix/cachix-action@v15
# armv7a (armeabi-v7a) — 32-bit ARM, used by Wear OS watches
android-armv7a-emulator:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- name: Local cache
uses: actions/cache@v4
with:
path: /nix/store
key: "${{ runner.os }}-nix-android-armv7a-emu"
restore-keys: |
${{ runner.os }}-nix-android-armv7a-
${{ runner.os }}-nix-android-
- uses: cachix/install-nix-action@v31
with:
name: jappie
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build
- run: nix-shell --run "echo OK"
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
extra-substituters = https://nix-cache.jappie.me
extra-trusted-public-keys = nix-cache.jappie.me:WjkKcvFtHih2i+n7bdsrJ3HuGboJiU2hA2CZbf9I9oc=
- name: Run armv7a emulator test
run: nix-build nix/ci.nix -A emulator-armv7a -o result-emulator-armv7a && ./result-emulator-armv7a/bin/test-all
- name: Cancel workflow on failure
if: failure()
continue-on-error: true
run: gh run cancel ${{ github.run_id }}
env:
GH_TOKEN: ${{ github.token }}

cabal:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: true
matrix:
ghc:
- '9.12'
- '9.10'
- '9.8'
- '9.6'
os: [ubuntu-latest, macOS-latest, windows-latest]

ios:
runs-on: macos-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
- name: Local cache
uses: actions/cache@v4
with:
path: /nix/store
key: "${{ runner.os }}-nix-ios-cache"
restore-keys: |
${{ runner.os }}-nix-ios-
- uses: cachix/install-nix-action@v31
with:
ghc-version: ${{ matrix.ghc }}
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
extra-substituters = https://nix-cache.jappie.me
extra-trusted-public-keys = nix-cache.jappie.me:WjkKcvFtHih2i+n7bdsrJ3HuGboJiU2hA2CZbf9I9oc=
- run: nix-build nix/ci.nix -A simulator-all -A ios-lib
- name: Run combined simulator test (lifecycle + UI + buttons + scroll)
run: nix-build nix/ci.nix -A simulator-all -o result-simulator-all && ./result-simulator-all/bin/test-all-ios
- name: Cancel workflow on failure
if: failure()
continue-on-error: true
run: gh run cancel ${{ github.run_id }}
env:
GH_TOKEN: ${{ github.token }}

- name: Cabal cache
watchos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Local cache
uses: actions/cache@v4
env:
cache-name: cache-cabal
with:
path: ~/.cabal
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
path: /nix/store
key: "${{ runner.os }}-nix-watchos-cache"
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Cabal update
run: cabal update
- name: Build using cabal
run: cabal build all
- name: Test
run: cabal test all
${{ runner.os }}-nix-watchos-
${{ runner.os }}-nix-ios-
- uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
extra-substituters = https://nix-cache.jappie.me
extra-trusted-public-keys = nix-cache.jappie.me:WjkKcvFtHih2i+n7bdsrJ3HuGboJiU2hA2CZbf9I9oc=
- run: nix-build nix/ci.nix -A watchos-simulator-all -A watchos-lib
- name: Run combined watchOS simulator test
run: nix-build nix/ci.nix -A watchos-simulator-all -o result-watchos && ./result-watchos/bin/test-all-watchos
- name: Cancel workflow on failure
if: failure()
continue-on-error: true
Expand Down
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ network-uri-lenses.cabal
dist*
.#*
result
result-*
TAGS

*.hi
*.o
.envrc
.envrc

# Generated Xcode project (recreated via xcodegen)
ios/HaskellMobile.xcodeproj/

# Staging dirs populated from nix build output
ios/lib/
ios/include/
7 changes: 3 additions & 4 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Change log for template project
# Change log for haskell-mobile

## Version 0.0.0

import [template](https://github.com/jappeace/template).
## Version 1.0.0

Initial release of haskell-mobile.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Jappie Klooster
Copyright (c) 2026 Jappie Klooster

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading
Loading