Skip to content

[201_37] 图片悬浮菜单固定高度 (#2320) #71

[201_37] 图片悬浮菜单固定高度 (#2320)

[201_37] 图片悬浮菜单固定高度 (#2320) #71

name: CD for Mogan STEM on macOS arm64
on:
workflow_dispatch:
push:
tags:
- '*'
permissions:
contents: write
jobs:
macosbuild:
strategy:
matrix:
os: [macos-14]
arch: [arm64]
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Noto fonts
run: |
mkdir -p $GITHUB_WORKSPACE/TeXmacs/fonts/opentype/noto
cd $GITHUB_WORKSPACE/TeXmacs/fonts/opentype/noto
wget https://github.com/XmacsLabs/mogan/releases/download/v1.2.9.7/NotoSansCJK-Bold.ttc
wget https://github.com/XmacsLabs/mogan/releases/download/v1.2.9.7/NotoSansCJK-Regular.ttc
wget https://github.com/XmacsLabs/mogan/releases/download/v1.2.9.7/NotoSerifCJK-Bold.ttc
wget https://github.com/XmacsLabs/mogan/releases/download/v1.2.9.7/NotoSerifCJK-Regular.ttc
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: v2.9.3
actions-cache-folder: '.xmake-cache'
- name: Install create-dmg
run: |
brew install create-dmg
- name: xmake repo --update
run: xmake repo --update
- name: config
run: xmake config -m release -a ${{ matrix.arch }} -vD --yes
- name: build
run: xmake build -vD stem
- name: install
run: xmake install -vD stem
- name: Clean up mounted DMGs
run: |
# 卸载任何可能挂载的DMG
hdiutil detach /Volumes/* -force 2>/dev/null || true
diskutil unmount /Volumes/* -force 2>/dev/null || true
# 清理临时文件
rm -rf /tmp/create-dmg.* 2>/dev/null || true
# 清理可能存在的挂载点
find /Volumes -maxdepth 1 -type d -name "*" -exec umount {} \; 2>/dev/null || true
# 等待资源释放
sleep 3
- name: Generate Installer
run: |
xmake install -vD stem_packager
- name: Upload
uses: actions/upload-artifact@v4
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
path: build/*.dmg
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: build/*.dmg