From fff5958814f4fe0a4fc485debf4f5b6a4b35522a Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Fri, 14 Jan 2022 14:40:40 +0100 Subject: [PATCH] Update check-git-apply.yaml --- .github/workflows/check-git-apply.yaml | 53 ++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check-git-apply.yaml b/.github/workflows/check-git-apply.yaml index cd509742..4502f9f9 100644 --- a/.github/workflows/check-git-apply.yaml +++ b/.github/workflows/check-git-apply.yaml @@ -2,19 +2,56 @@ name: Check git apply on: workflow_dispatch: - + inputs: + rtag: + description: 'uazo/bromite TAG or COMMIT' + required: true + default: '' + +env: + RTAG: ${{ github.event.inputs.rtag }} + jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - path: bromite - fetch-depth: 1 - + steps: - name: Prepare container run: | sudo apt update - sudo apt install -y wget unzip sqlite3 + sudo apt install -y wget unzip tar sed dos2unix patchutils wiggle + wget https://github.com/uazo/superpatch/releases/latest/download/SuperPatchUtils.tar.gz tar xfz SuperPatchUtils.tar.gz + rm SuperPatchUtils.tar.gz + + git clone https://github.com/uazo/bromite-buildtools + + - name: Download bromite sources + run: | + mkdir bromite && cd bromite + git init + git remote add origin https://github.com/uazo/bromite + git fetch origin $RTAG + git reset --hard FETCH_HEAD + cd .. + + - name: Download chromium sources + run: | + ./bin/SuperPatchUtils bromite $RTAG chromium/src + cd chromium/src + git init + git config user.email "you@example.com" + git config user.name "Your Name" + git add . + git commit -m $(cat ~/bromite/build/RELEASE) + cd ../.. + + - name: Apply patches + run: | + export HOME=$(pwd) + cd ~/chromium/src + + export SILENT=true + export SKIPAUTOGENERATED=true + bash ~/bromite-buildtools/apply-all-patch.sh || exit 1 +