Add ability to manually set chromium ver

This commit is contained in:
Antoine Martin 2024-10-10 16:14:53 -04:00
parent 51f050fc81
commit 5742e7e7a5
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -2,9 +2,13 @@ on:
workflow_dispatch:
inputs:
ref_name:
description: 'tag or commit'
description: 'electron tag or commit'
required: true
type: string
chromium_ver:
description: 'chromium tag or commit'
required: false
type: string
push:
tags:
@ -36,11 +40,16 @@ jobs:
run: |
if test $GITHUB_REF_NAME == "ci" ; then
CI_REF_NAME=${{ inputs.ref_name }}
_chromiumver=${{ inputs.chromium_ver }}
else
CI_REF_NAME=$GITHUB_REF_NAME
fi
echo $CI_REF_NAME > ci_ref_name
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
run: |
read CI_REF_NAME < ci_ref_name
@ -70,7 +79,7 @@ jobs:
run: |
read CI_REF_NAME < ci_ref_name
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
- name: Computing checksums