Build and release calculator for Android #14
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
name: CD | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
# macOS because we can cross-compile to all other platforms from it | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
cache: true | ||
- uses: bluefireteam/melos-action@v2 | ||
- uses: goto-bus-stop/setup-zig@v2 | ||
- uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: "15" | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
- uses: nttld/setup-ndk@v1 | ||
with: | ||
ndk-version: r26d | ||
- name: Build all library binaries | ||
run: melos run build | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: "apps/calculator/build/app/outputs/apk/debug/*.apk" | ||
compression-level: 2 | ||