Compare commits

...

14 Commits
0.2.8 ... main

Author SHA1 Message Date
Weiqi Gao
a7db45386b
Merge pull request #1 from ShintoKosei/main
Update um-react to d91e2
2025-05-18 16:10:47 +08:00
ShintoKosei
8675fff999
Update build-electron.yml 2025-05-10 19:30:21 +08:00
github-actions[bot]
a8f24f9ec0 Update um-react to d91e2fffe4747da635d4d82579205a0e8a8a298e 2025-04-03 17:31:33 +00:00
Weiqi Gao
bc10acf44b
Update build-electron.yml 2025-02-28 10:09:50 +08:00
github-actions[bot]
aee51c99c6 Update um-react to v0.4.0 2025-02-28 01:55:36 +00:00
Weiqi Gao
54b0be5e12
Update build-electron.yml 2024-12-19 14:44:43 +08:00
github-actions[bot]
8cf45ee91d Update um-react to v0.3.3 2024-12-19 06:32:54 +00:00
github-actions[bot]
a7a4fde7dc Update um-react to v0.3.2 2024-12-19 06:32:01 +00:00
github-actions[bot]
1d1f16257b Update um-react to v0.3.1 2024-12-19 06:31:42 +00:00
Weiqi Gao
cd18cb6c50
Update update-um-react-manual.yml to set whether to release 2024-12-19 09:40:01 +08:00
Weiqi Gao
fe117d22d0
Update build-electron.yml to commit on workflow_call 2024-12-19 09:37:34 +08:00
github-actions[bot]
b2b17dce28 Update um-react to v0.3.0 2024-12-19 01:31:03 +00:00
Weiqi Gao
a91ef748a4
Add manual label to update-um-react-manual.yml 2024-12-19 09:29:56 +08:00
Weiqi Gao
c6bf4e6ef4
Add update-um-react-manual.yml to fetch latest codes manually 2024-12-19 09:29:11 +08:00
3 changed files with 70 additions and 6 deletions

View File

@ -18,6 +18,9 @@ on:
commit:
type: string
default: main
release:
type: boolean
default: false
permissions:
contents: write
@ -32,12 +35,22 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
ref: ${{ inputs.commit || github.sha }}
# 关键修改:补充编译依赖
- name: Install system dependencies
run: |
sudo dpkg --add-architecture i386
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
uses: pnpm/action-setup@v2
@ -48,7 +61,7 @@ jobs:
run: |
git submodule update --init --recursive
cd um-react
pnpm install --frozen-lockfile
pnpm install --no-frozen-lockfile
cd ..
npm install --frozen-lockfile
@ -85,8 +98,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4.1.1
# macOS 补充依赖
- name: Install system dependencies
run: brew install node
run: |
brew install node
brew install pkg-config cairo pango libpng jpeg giflib
- name: Install pnpm
uses: pnpm/action-setup@v2
@ -97,7 +113,7 @@ jobs:
run: |
git submodule update --init --recursive
cd um-react
pnpm install --frozen-lockfile
pnpm install --no-frozen-lockfile
cd ..
npm install --frozen-lockfile
@ -135,6 +151,6 @@ jobs:
file: ${{ needs.build-linux-windows.outputs.version }}/*
tag: ${{ 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
file_glob: true

View 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 }}

@ -1 +1 @@
Subproject commit c1e17992e9a9f07d4806a5cb023a8317f332d396
Subproject commit d91e2fffe4747da635d4d82579205a0e8a8a298e