testing #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: iOS Pull Request Check | |
on: | |
# Manual Trigger | |
workflow_dispatch: | |
push: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head.ref }} | |
cancel-in-progress: false | |
jobs: | |
ios_check: | |
runs-on: uhura | |
steps: | |
- name: Get code | |
uses: actions/checkout@v4 | |
- name: ios test check | |
run: | | |
uname -s && uname -m | |
cd .. | |
MY_ROOT=`pwd` | |
mkdir -p ${MY_ROOT}/my-flutter/engine | |
cd ${MY_ROOT}/my-flutter | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
export PATH=${MY_ROOT}/my-flutter/depot_tools:$PATH | |
cd ${MY_ROOT}/my-flutter/engine | |
git clone https://github.com/flutter/buildroot src | |
cp -r ${GITHUB_WORKSPACE} ${MY_ROOT}/my-flutter/engine/src | |
mv ${MY_ROOT}/my-flutter/engine/src/engine ${MY_ROOT}/my-flutter/engine/src/flutter | |
cd ${MY_ROOT}/my-flutter/engine | |
echo 'solutions = [{"custom_deps": {},"custom_vars":{"download_emsdk": True},"deps_file": "DEPS","managed": False,"name": "src/flutter","safesync_url": "","url": "https://github.com/${GITHUB_REPOSITORY}",},]' > .gclient | |
FLUTTER_API_BRANCH=main | |
if [ "${FLUTTER_API_BRANCH_OVERRIDE}" != "" ]; then | |
FLUTTER_API_BRANCH=${FLUTTER_BRANCH_OVERRIDE} | |
elif git ls-remote --heads ${FLUTTER_API_GIT_URL} ${GITHUB_BASE_REF} | grep ${GITHUB_BASE_REF} > /dev/null; then | |
FLUTTER_API_BRANCH=${GITHUB_BASE_REF} | |
fi | |
#cd ${MY_ROOT}/my-flutter | |
#git clone ${FLUTTER_API_GIT_URL} | |
#cd flutter && git ${FLUTTER_BRANCH} | |
cd ${MY_ROOT}/my-flutter/engine | |
gclient sync | |
export PATH=${MY_ROOT}/my-flutter/engine/src/flutter/lib/web_ui/dev:$PATH | |
export PATH=${MY_ROOT}/my-flutter/flutter/bin:$PATH | |
cd ${MY_ROOT}/my-flutter/engine/src | |
./flutter/tools/gn --ios --unoptimized | |
./flutter/tools/gn --unoptimized | |
ninja -C out/ios_debug_unopt | |
ninja -C out/host_debug_unopt | |
- name: android test | |
run: | | |
cd .. | |
MY_ROOT=`pwd` | |
cd ${MY_ROOT}/my-flutter/engine/src | |
./flutter/testing/run_tests.py --type=dart | |
./flutter/testing/run_tests.py --type=engine |