Skip to content
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-22.04

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