Skip to content

Commit bbc6e1f

Browse files
authored
Adds Gemini CLI to Github Actions (#2718)
## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I have added sample code updates to the [changelog]. - [x] I updated/added relevant documentation (doc comments with `///`).
1 parent d5184b5 commit bbc6e1f

File tree

8 files changed

+1107
-41
lines changed

8 files changed

+1107
-41
lines changed

.github/workflows/beta.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ jobs:
3838

3939
# Verify the Android add-to-app samples build and pass tests with the beta
4040
# channel.
41-
# android-build:
42-
# runs-on: ubuntu-latest
43-
# if: github.repository == 'flutter/samples'
44-
# steps:
45-
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
46-
# - uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
47-
# with:
48-
# distribution: 'zulu'
49-
# java-version: '17'
50-
# - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
51-
# with:
52-
# channel: beta
53-
# - run: ./tool/android_ci_script.sh
41+
android-build:
42+
runs-on: ubuntu-latest
43+
if: github.repository == 'flutter/samples'
44+
steps:
45+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
46+
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
47+
with:
48+
distribution: 'zulu'
49+
java-version: '17'
50+
- uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
51+
with:
52+
channel: beta
53+
- run: ./tool/android_ci_script.sh
5454

5555
# Verify the iOS add-to-app samples build and pass tests with the beta
5656
# channel.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test Android Build
2+
3+
# Declare default permissions as read only.
4+
permissions: read-all
5+
6+
on:
7+
push:
8+
branches: [beta]
9+
pull_request:
10+
branches: [beta]
11+
workflow_dispatch:
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
jobs:
18+
android-build:
19+
runs-on: ubuntu-latest
20+
if: github.repository == 'flutter/samples'
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
23+
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
24+
with:
25+
distribution: 'zulu'
26+
java-version: '17'
27+
- uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
28+
with:
29+
channel: stable
30+
- run: ./tool/android_ci_script.sh

.github/workflows/build-ios.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test iOS Build
2+
3+
# Declare default permissions as read only.
4+
permissions: read-all
5+
6+
on:
7+
push:
8+
branches: [beta]
9+
pull_request:
10+
branches: [beta]
11+
workflow_dispatch:
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
jobs:
18+
ios-build:
19+
name: Test flutter beta channel
20+
runs-on: macos-latest
21+
if: github.repository == 'flutter/samples'
22+
strategy:
23+
fail-fast: false
24+
steps:
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
26+
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165
27+
with:
28+
distribution: 'zulu'
29+
java-version: '17'
30+
- uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046
31+
with:
32+
channel: beta
33+
- run: ./tool/ios_ci_script.sh

0 commit comments

Comments
 (0)