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

新功能:GitHub 操作全自动编译 deb 安装包 #466

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ubuntu-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 编译 debian 包

on:
workflow_dispatch:
permissions:
contents: read

jobs:
Ubuntu:
runs-on: ubuntu-latest

steps:
- name: 仓库检出
uses: actions/checkout@v4
- name: 安装编译环境
run:
sudo apt-get install g++ make cmake
- name: 安装QT
run:
sudo apt-get install qtbase5-dev qt5-qmake qtbase5-dev-tools libqt5printsupport5 libqt5xmlpatterns5-dev
- name: 配置
run:
cmake -B build -DCMAKE_BUILD_TYPE=Release
- name: 编译
run:
cd build && make -j8
- name: 打包
run:
cd build && cpack
- name: 上传
uses: actions/[email protected]
with:
name: notepad--.deb
path: build/*.deb