Git clone depot_tools before getting variables
This commit is contained in:
parent
e7bd005e22
commit
74e189a493
1 changed files with 3 additions and 6 deletions
|
@ -27,19 +27,16 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Environment setup
|
- name: Environment setup
|
||||||
run: apk add nodejs git zstd tar sed bash py3-httplib2 wget curl
|
run: apk add nodejs git zstd tar sed bash py3-httplib2 wget curl
|
||||||
- name: Getting variables
|
|
||||||
run: |
|
|
||||||
echo $GITHUB_REF_NAME
|
|
||||||
curl --silent https://raw.githubusercontent.com/electron/electron/$GITHUB_REF_NAME/.github/actions/install-build-tools/action.yml | grep BUILD_TOOLS_SHA | awk -F "=" '{print $2}' > depottoolsver
|
|
||||||
curl --silent https://raw.githubusercontent.com/electron/electron/$GITHUB_REF_NAME/DEPS | grep "'chromium_version':" -A 1 | tail -n 1 | tr -d "'" | tr -d ',' | tr -d ' ' > chromiumver
|
|
||||||
- name: Getting depot_tools
|
- name: Getting depot_tools
|
||||||
run: |
|
run: |
|
||||||
read _depottoolsver < depottoolsver
|
|
||||||
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git ./
|
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git ./
|
||||||
|
curl --silent https://raw.githubusercontent.com/electron/electron/$GITHUB_REF_NAME/.github/actions/install-build-tools/action.yml | grep BUILD_TOOLS_SHA | awk -F "=" '{print $2}' > depottoolsver
|
||||||
|
read _depottoolsver < depottoolsver
|
||||||
git fetch --depth 1 origin $_depottoolsver
|
git fetch --depth 1 origin $_depottoolsver
|
||||||
git checkout $_depottoolsver
|
git checkout $_depottoolsver
|
||||||
- name: Fetching electron
|
- name: Fetching electron
|
||||||
run: |
|
run: |
|
||||||
|
curl --silent https://raw.githubusercontent.com/electron/electron/$GITHUB_REF_NAME/DEPS | grep "'chromium_version':" -A 1 | tail -n 1 | tr -d "'" | tr -d ',' | tr -d ' ' > chromiumver
|
||||||
read _chromiumver < chromiumver
|
read _chromiumver < chromiumver
|
||||||
echo "solutions = [{'name': 'src/electron','url': 'https://github.com/electron/electron.git@$CI_REF_NAME','deps_file': 'DEPS','managed': False,'custom_deps': {'src': 'https://chromium.googlesource.com/chromium/src.git@$_chromiumver',},'custom_vars': {},},]' > .gclient
|
echo "solutions = [{'name': 'src/electron','url': 'https://github.com/electron/electron.git@$CI_REF_NAME','deps_file': 'DEPS','managed': False,'custom_deps': {'src': 'https://chromium.googlesource.com/chromium/src.git@$_chromiumver',},'custom_vars': {},},]' > .gclient
|
||||||
./gclient sync --no-history --nohooks
|
./gclient sync --no-history --nohooks
|
||||||
|
|
Loading…
Reference in a new issue