Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Chrome devtools自动打包工作流以及devtools内嵌 #286

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
78 changes: 78 additions & 0 deletions .github/workflows/devtoolsBuilder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: devtoolsBuilder

on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
#push:
#branches:
#- chrome-dev-tools


permissions:
contents: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
python3 \
git \
curl \
gn \
npm

- name: Install Depot Tools
uses: newkdev/[email protected]

- name: Fetch devtools-frontend
run: fetch --no-history devtools-frontend

- name: Build devtools-frontend
run: |
cd devtools-frontend
gclient sync
gn gen out/Default
autoninja -C out/Default

- name: Create commit
id: create_commit
run: |
# Copy built files
rsync -a ./devtools-frontend/out/Default/gen/front_end ./public/chrome_devtools
# Create index.html
cp ./public/chrome_devtools/front_end/devtools_app.html ./public/chrome_devtools/front_end/index.html
# Create commit info with latest devtools-frontend commit
current_date=$(date +"%d-%m-%Y")
latest_commit_full=$(git ls-remote https://chromium.googlesource.com/devtools/devtools-frontend.git HEAD | cut -f 1)
latest_commit_short=${latest_commit_full:0:7}
commit_title="Chrome devtools auto-build $current_date"
commit_description="Latest devtools frontend commit: [${latest_commit_short}](https://chromium.googlesource.com/devtools/devtools-frontend.git/+/${latest_commit_full})"
branch_name="chrome-devtools-build/${current_date}"
# Create step outputs
echo "branch_name=${branch_name}" >> $GITHUB_OUTPUT
echo "commit_title=${commit_title}" >> $GITHUB_OUTPUT
echo "commit_description=${commit_description}" >> $GITHUB_OUTPUT

- name: Create PR
id: create_pr
uses: peter-evans/create-pull-request@v5
with:
branch: ${{ steps.create_commit.outputs.branch_name }}
title: ${{ steps.create_commit.outputs.commit_title }}
body: ${{ steps.create_commit.outputs.commit_description }}
commit-message: ${{ steps.create_commit.outputs.commit_description }}
author: GitHub <[email protected]>
labels: auto-build
branch-suffix: timestamp
add-paths: |
public/chrome_devtools
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/3d-center.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/3d-pan.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/3d-rotate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
246 changes: 246 additions & 0 deletions public/chrome_devtools/front_end/Images/Images.js

Large diffs are not rendered by default.

247 changes: 247 additions & 0 deletions public/chrome_devtools/front_end/Images/Images.prebundle.js

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/align-self-end.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/arrow-back.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/arrow-down.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/arrow-forward.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/arrow-up-down.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/arrow-up.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/bell.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/bin.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/brackets.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/brush-filled.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/brush.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/bug.svg
1 change: 1 addition & 0 deletions public/chrome_devtools/front_end/Images/bundle.svg
Loading
Loading