mirror of
https://github.com/CarlGao4/um-react-electron.git
synced 2025-05-23 16:27:43 +08:00
Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a7db45386b | ||
|
8675fff999 | ||
|
a8f24f9ec0 | ||
|
bc10acf44b | ||
|
aee51c99c6 | ||
|
54b0be5e12 | ||
|
8cf45ee91d | ||
|
a7a4fde7dc | ||
|
1d1f16257b | ||
|
cd18cb6c50 | ||
|
fe117d22d0 | ||
|
b2b17dce28 | ||
|
a91ef748a4 | ||
|
c6bf4e6ef4 |
26
.github/workflows/build-electron.yml
vendored
26
.github/workflows/build-electron.yml
vendored
@ -18,6 +18,9 @@ on:
|
|||||||
commit:
|
commit:
|
||||||
type: string
|
type: string
|
||||||
default: main
|
default: main
|
||||||
|
release:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -32,12 +35,22 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.commit || github.sha }}
|
||||||
|
|
||||||
|
# 关键修改:补充编译依赖
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install npm wine32
|
sudo apt-get install -y \
|
||||||
|
npm \
|
||||||
|
wine32 \
|
||||||
|
build-essential \
|
||||||
|
python3 \
|
||||||
|
libxi-dev \
|
||||||
|
libgl1-mesa-dev \
|
||||||
|
libpng-dev
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v2
|
uses: pnpm/action-setup@v2
|
||||||
@ -48,7 +61,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd um-react
|
cd um-react
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --no-frozen-lockfile
|
||||||
cd ..
|
cd ..
|
||||||
npm install --frozen-lockfile
|
npm install --frozen-lockfile
|
||||||
|
|
||||||
@ -85,8 +98,11 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
|
# macOS 补充依赖
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: brew install node
|
run: |
|
||||||
|
brew install node
|
||||||
|
brew install pkg-config cairo pango libpng jpeg giflib
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
uses: pnpm/action-setup@v2
|
uses: pnpm/action-setup@v2
|
||||||
@ -97,7 +113,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd um-react
|
cd um-react
|
||||||
pnpm install --frozen-lockfile
|
pnpm install --no-frozen-lockfile
|
||||||
cd ..
|
cd ..
|
||||||
npm install --frozen-lockfile
|
npm install --frozen-lockfile
|
||||||
|
|
||||||
@ -135,6 +151,6 @@ jobs:
|
|||||||
file: ${{ needs.build-linux-windows.outputs.version }}/*
|
file: ${{ needs.build-linux-windows.outputs.version }}/*
|
||||||
tag: ${{ needs.build-linux-windows.outputs.version }}
|
tag: ${{ needs.build-linux-windows.outputs.version }}
|
||||||
body: Release ${{ needs.build-linux-windows.outputs.version }}
|
body: Release ${{ needs.build-linux-windows.outputs.version }}
|
||||||
target_commit: ${{ github.event_name == 'repository_dispatch' && inputs.commit || github.sha }}
|
target_commit: ${{ inputs.commit || github.sha }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
file_glob: true
|
file_glob: true
|
||||||
|
48
.github/workflows/update-um-react-manual.yml
vendored
Normal file
48
.github/workflows/update-um-react-manual.yml
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
name: Update um-react manual
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
commit:
|
||||||
|
description: 'Commit to fetch'
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
release:
|
||||||
|
description: 'Create a release for this update'
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-um-react:
|
||||||
|
name: Update um-react
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
commit: ${{ steps.push.outputs.pushed && steps.push.outputs.commit-sha || github.sha }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
|
- name: Update repo
|
||||||
|
run: |
|
||||||
|
git submodule update --init
|
||||||
|
cd um-react
|
||||||
|
git checkout ${{ inputs.commit }}
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
- name: Push
|
||||||
|
id: push
|
||||||
|
uses: actions4git/add-commit-push@v1
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
commit-message: Update um-react to ${{ inputs.commit }}
|
||||||
|
|
||||||
|
call-build:
|
||||||
|
uses: ./.github/workflows/build-electron.yml
|
||||||
|
needs: update-um-react
|
||||||
|
with:
|
||||||
|
commit: ${{ needs.update-um-react.outputs.commit }}
|
||||||
|
release: ${{ inputs.release }}
|
2
um-react
2
um-react
@ -1 +1 @@
|
|||||||
Subproject commit c1e17992e9a9f07d4806a5cb023a8317f332d396
|
Subproject commit d91e2fffe4747da635d4d82579205a0e8a8a298e
|
Loading…
x
Reference in New Issue
Block a user