2024-06-14 16:08:41 +00:00
|
|
|
name: Electron Docs Compile
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
container:
|
|
|
|
required: true
|
|
|
|
description: 'Container to run the docs-only ts compile in'
|
|
|
|
type: string
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: electron-docs-only-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docs-only:
|
|
|
|
name: Docs Only Compile
|
2024-07-13 05:22:49 +00:00
|
|
|
runs-on: electron-arc-linux-amd64-4core
|
2024-06-14 16:08:41 +00:00
|
|
|
timeout-minutes: 20
|
|
|
|
container: ${{ fromJSON(inputs.container) }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout Electron
|
2024-10-01 16:16:20 +00:00
|
|
|
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
|
2024-06-14 16:08:41 +00:00
|
|
|
with:
|
|
|
|
path: src/electron
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
cd src/electron
|
2024-06-17 23:33:44 +00:00
|
|
|
node script/yarn install --frozen-lockfile
|
2024-06-14 16:08:41 +00:00
|
|
|
- name: Run TS/JS compile
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd src/electron
|
|
|
|
node script/yarn create-typescript-definitions
|
|
|
|
node script/yarn tsc -p tsconfig.default_app.json --noEmit
|
|
|
|
for f in build/webpack/*.js
|
|
|
|
do
|
|
|
|
out="${f:29}"
|
|
|
|
if [ "$out" != "base.js" ]; then
|
|
|
|
node script/yarn webpack --config $f --output-filename=$out --output-path=./.tmp --env mode=development
|
|
|
|
fi
|
|
|
|
done
|