Add ability to manually set chromium ver
This commit is contained in:
parent
51f050fc81
commit
5742e7e7a5
1 changed files with 12 additions and 3 deletions
|
@ -2,9 +2,13 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
ref_name:
|
ref_name:
|
||||||
description: 'tag or commit'
|
description: 'electron tag or commit'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
chromium_ver:
|
||||||
|
description: 'chromium tag or commit'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
|
@ -36,11 +40,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if test $GITHUB_REF_NAME == "ci" ; then
|
if test $GITHUB_REF_NAME == "ci" ; then
|
||||||
CI_REF_NAME=${{ inputs.ref_name }}
|
CI_REF_NAME=${{ inputs.ref_name }}
|
||||||
|
_chromiumver=${{ inputs.chromium_ver }}
|
||||||
else
|
else
|
||||||
CI_REF_NAME=$GITHUB_REF_NAME
|
CI_REF_NAME=$GITHUB_REF_NAME
|
||||||
fi
|
fi
|
||||||
echo $CI_REF_NAME > ci_ref_name
|
echo $CI_REF_NAME > ci_ref_name
|
||||||
curl --silent https://raw.githubusercontent.com/electron/electron/$CI_REF_NAME/DEPS | grep "'chromium_version':" -A 1 | tail -n 1 | tr -d "'" | tr -d ',' | tr -d ' ' > chromiumver
|
if [ -n "$_chromiumver" ]; then
|
||||||
|
echo $_chromiumver > chromiumver
|
||||||
|
else
|
||||||
|
curl --silent https://raw.githubusercontent.com/electron/electron/$CI_REF_NAME/DEPS | grep "'chromium_version':" -A 1 | tail -n 1 | tr -d "'" | tr -d ',' | tr -d ' ' > chromiumver
|
||||||
|
fi
|
||||||
- name: Fetching electron
|
- name: Fetching electron
|
||||||
run: |
|
run: |
|
||||||
read CI_REF_NAME < ci_ref_name
|
read CI_REF_NAME < ci_ref_name
|
||||||
|
@ -70,7 +79,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
read CI_REF_NAME < ci_ref_name
|
read CI_REF_NAME < ci_ref_name
|
||||||
read _chromiumver < chromiumver
|
read _chromiumver < chromiumver
|
||||||
tar -cf $pkgname-$_semver-$_chromium.tar --exclude="ChangeLog*" --exclude="testdata/*" --exclude="test_data/*" --exclude="android_rust_toolchain/*" --exclude-backups --exclude-caches-all --exclude-vcs electron-$CI_REF_NAME-$_chromiumver
|
tar -cf $pkgname-$_semver-$_chromium.tar --exclude="ChangeLog*" --exclude="testdata/*" --exclude="test_data/*" --exclude="android_rust_toolchain/*" --exclude-backups --exclude-caches-all --exclude-vcs electron-$CI_REF_NAME-$_chromiumver.tar
|
||||||
|
|
||||||
zstd --auto-threads=logical --ultra --long -22 -T"${ZSTD_LIMIT:-0}" -vv electron-$CI_REF_NAME-$_chromiumver.tar -o electron-$CI_REF_NAME-$_chromiumver.tar.zst
|
zstd --auto-threads=logical --ultra --long -22 -T"${ZSTD_LIMIT:-0}" -vv electron-$CI_REF_NAME-$_chromiumver.tar -o electron-$CI_REF_NAME-$_chromiumver.tar.zst
|
||||||
- name: Computing checksums
|
- name: Computing checksums
|
||||||
|
|
Loading…
Reference in a new issue