From 5e6cee423727ebeeba27d38c46319aed92bf3b76 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Sun, 12 May 2024 10:06:33 -0700 Subject: [PATCH] build: support updating chromium through CI Adds a `update-chromium` job that runs the `.update.sh` script at the same time as the updater ever day. This automates the updates of the chromium ebuild fork I have here. As a reminder, the "fork" is just to enable widevine support on arm64, if installed on the host. --- .github/workflows/update.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index 6f30937..ab2e67c 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -15,6 +15,29 @@ concurrency: group: "updater-${{ github.repository }}-${{ github.ref }}" jobs: + # Temporary job to update the www-client/chromium package until the + # updater supports periodic jobs (if ever?) + update-chromium: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: jdx/mise-action@v2 + with: + experimental: true + - name: Setup Environment + working-directory: .tools + run: mise run build + - name: Sync chromium with upstream + working-directory: www-client/chromium + run: ./.update.sh + - uses: jaredallard/ghcommit-action@v0.1.7 + if: github.event_name != 'pull_request' + with: + commit_message: "chore: update dependencies" + repo: ${{ github.repository }} + branch: "main" + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} updater: runs-on: ubuntu-latest steps: