-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.25 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# adapted from https://github.com/flutter/gallery/blob/main/.github/workflows/build.yml
name: Build
on:
push:
branches:
- main
workflow_dispatch:
# Declare default permissions as read only.
permissions: read-all
jobs:
build:
name: Build ${{ matrix.target }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
target: ["apk --debug", "ios --no-codesign", macos]
steps:
# is this necessary? -- sink
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter config --enable-macos-desktop
- run: flutter doctor -v
- run: flutter pub get
- run: flutter build ${{ matrix.target }}
- name: Create .IPA from .APP
if: contains(matrix.target, 'ios')
run: |
mkdir Payload
mv build/ios/iphoneos/*.app Payload/Miru.app
zip -r Miru.zip Payload
mv Miru.zip Miru.ipa
- uses: actions/upload-artifact@v3
if: contains(matrix.target, 'ios')
with:
name: Miru.ipa
path: Miru.ipa