Skip to content

Commit 4cacc5c

Browse files
authored
Merge pull request #11 from MEverett90/me/remote-trigger
Add Remote Trigger with SRCREV
2 parents de772cb + 2d4da08 commit 4cacc5c

File tree

3 files changed

+18
-30
lines changed

3 files changed

+18
-30
lines changed

.github/workflows/flutter-engine-arm64.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
name: Linux arm64
22

33
on:
4-
pull_request:
5-
types: [ opened, synchronize, reopened, closed ]
6-
release:
7-
types: [ published, created, edited ]
84
workflow_dispatch:
5+
inputs:
6+
SRCREV:
7+
description: 'Flutter Engine Target Source Revision'
8+
required: True
9+
default: ''
910

1011
jobs:
1112
linux-arm64:
12-
13-
env:
14-
# TODO - hard coded for now
15-
SRCREV: "c9b9d5780da342eb3f0f5e439a7db06f7d112575"
16-
1713
runs-on: [self-hosted, linux, x64]
1814

1915
steps:
@@ -30,7 +26,7 @@ jobs:
3026
export PATH=$PATH:$PWD/depot_tools
3127
export VPYTHON_VIRTUALENV_ROOT=$PWD/vpython
3228
gclient config --spec 'solutions=[{"name":"src/flutter","url":"https://github.com/flutter/engine.git","deps_file":"DEPS","managed":False,"custom_deps":{},"custom_vars":{"download_android_deps":False,"download_windows_deps":False,"download_linux_deps":True}}]'
33-
gclient sync --force --shallow --no-history -R -D --revision $SRCREV -j$(nproc) -v
29+
gclient sync --force --shallow --no-history -R -D --revision ${{ inputs.SRCREV }} -j$(nproc) -v
3430
3531
PATCH_DIR=$PWD/patches
3632

.github/workflows/flutter-engine-armv7hf.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
name: Linux armv7hf
22

33
on:
4-
pull_request:
5-
types: [ opened, synchronize, reopened, closed ]
6-
release:
7-
types: [ published, created, edited ]
84
workflow_dispatch:
5+
inputs:
6+
SRCREV:
7+
description: 'Flutter Engine Target Source Revision'
8+
required: True
9+
default: ''
910

1011
jobs:
1112
linux-armv7hf:
12-
13-
env:
14-
# TODO - hard coded for now
15-
SRCREV: "c9b9d5780da342eb3f0f5e439a7db06f7d112575"
16-
1713
runs-on: [self-hosted, linux, x64]
1814

1915
steps:
@@ -30,7 +26,7 @@ jobs:
3026
export PATH=$PATH:$PWD/depot_tools
3127
export VPYTHON_VIRTUALENV_ROOT=$PWD/vpython
3228
gclient config --spec 'solutions=[{"name":"src/flutter","url":"https://github.com/flutter/engine.git","deps_file":"DEPS","managed":False,"custom_deps":{},"custom_vars":{"download_android_deps":False,"download_windows_deps":False,"download_linux_deps":True}}]'
33-
gclient sync --force --shallow --no-history -R -D --revision $SRCREV -j$(nproc) -v
29+
gclient sync --force --shallow --no-history -R -D --revision ${{ inputs.SRCREV }} -j$(nproc) -v
3430
3531
PATCH_DIR=$PWD/patches
3632

.github/workflows/flutter-engine-x86_64.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
name: Linux x86_64
22

33
on:
4-
pull_request:
5-
types: [ opened, synchronize, reopened, closed ]
6-
release:
7-
types: [ published, created, edited ]
84
workflow_dispatch:
5+
inputs:
6+
SRCREV:
7+
description: 'Flutter Engine Target Source Revision'
8+
required: True
9+
default: ''
910

1011
jobs:
1112
linux-x86_64:
12-
13-
env:
14-
# TODO - hard coded for now
15-
SRCREV: "c9b9d5780da342eb3f0f5e439a7db06f7d112575"
16-
1713
runs-on: [self-hosted, linux, x64]
1814

1915
steps:
@@ -30,7 +26,7 @@ jobs:
3026
export PATH=$PATH:$PWD/depot_tools
3127
export VPYTHON_VIRTUALENV_ROOT=$PWD/vpython
3228
gclient config --spec 'solutions=[{"name":"src/flutter","url":"https://github.com/flutter/engine.git","deps_file":"DEPS","managed":False,"custom_deps":{},"custom_vars":{"download_android_deps":False,"download_windows_deps":False,"download_linux_deps":True}}]'
33-
gclient sync --force --shallow --no-history -R -D --revision $SRCREV -j$(nproc) -v
29+
gclient sync --force --shallow --no-history -R -D --revision ${{ inputs.SRCREV }} -j$(nproc) -v
3430
3531
PATCH_DIR=$PWD/patches
3632

0 commit comments

Comments
 (0)