Update check-git-apply.yaml

This commit is contained in:
uazo
2022-01-14 14:40:40 +01:00
committed by GitHub
parent 1899895fae
commit fff5958814
+45 -8
View File
@@ -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