File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ SETUP_FLUTTER_WORKDIR=${SETUP_FLUTTER_WORKDIR:- " $( pwd) /.setup-flutter" }
3
+
4
+ # Runner environment variables
5
+ export RUNNER_TOOL_CACHE=" $SETUP_FLUTTER_WORKDIR /tool_cache"
6
+ export RUNNER_TEMP=" $SETUP_FLUTTER_WORKDIR /temp"
7
+ export RUNNER_ARCH=$( uname -m)
8
+ export RUNNER_OS=$( uname -s | tr ' [:upper:]' ' [:lower:]' )
9
+
10
+ if [ " $RUNNER_OS " = " darwin" ]; then
11
+ export RUNNER_OS=" macos"
12
+ fi
13
+
14
+ # GitHub Context
15
+ export GITHUB_ENV=" $SETUP_FLUTTER_WORKDIR /.env"
16
+ export GITHUB_PATH=" $SETUP_FLUTTER_WORKDIR /.path"
17
+
18
+ # Create mock environment
19
+ mkdir -p " $RUNNER_TOOL_CACHE " " $RUNNER_TEMP "
20
+
21
+ # Run the action
22
+ curl -fsSL " https://raw.githubusercontent.com/flutter-actions/setup-flutter/main/action.sh" | bash -s -- " $@ "
You can’t perform that action at this time.
0 commit comments