Skip to content

Commit

Permalink
ci: add android build in snap
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Aug 8, 2024
1 parent 1964774 commit 4162105
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,21 +135,28 @@ jobs:
working-directory: example
strategy:
fail-fast: false
matrix:
target: [linux, apk]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- run: |
- uses: actions/setup-java@v4
if: ${{ matrix.target == 'apk' }}
with:
distribution: 'zulu'
java-version: '17'
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y cmake clang ninja-build libgtk-3-dev libpulse-dev
sudo snap install flutter --classic
- run: flutter doctor --verbose
- run: flutter pub get
- run: flutter build linux --verbose
- run: flutter build ${{ matrix.target }} --verbose

Android:
runs-on: ${{ matrix.host }}-latest

defaults:
run:
working-directory: example
Expand Down

0 comments on commit 4162105

Please sign in to comment.